2

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
1
  • This question appears to be off-topic because it is about Linux commands, belongs to unix.stackexchange.com Commented Nov 26, 2013 at 10:50

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.