Apache-ds LDAP 服务器的 Linux命令是什么来执行以下操作
答案 0 :(得分:1)
Under CentOS I'm using openldap-clients
to execute commands against ApacheDS:
yum install openldap-clients
I used the following commands successfully:
Import schema
ldapadd -h localhost -p 10389 -D "uid=admin,ou=system" -f rfc2985.ldif -x -W
Change password
ldappasswd -h localhost -p 10389 -D "uid=admin,ou=system" -x -A -S -W
Filter by object class
ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -W "(objectclass=organization)"
There are also the following commands that I haven't used before, check the man page for more details:
ldapadd
ldapmodify
ldapdelete