What is the Linux commands for Apache-ds LDAP server to do the following operation
- Schema import (LDIF file import)
- LDAP search on objectClass
- LDAP add/modify/delete operations
What is the Linux commands for Apache-ds LDAP server to do the following operation
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