Title: Linux commands for Apache-ds LDAP
Tags: apacheds
Question: 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
Comment: This question appears to be off-topic because it is about Linux commands, belongs to http://unix.stackexchange.com


Here is another answer: 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

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:11/26/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<apacheds>', 'Title': 'Linux commands for Apache-ds LDAP', 'ViewCount': 753, 'id': 20214923, 'user_AboutMe': '', 'user_AccountId': 2760920.0, 'user_DisplayName': 'MADHAIYAN M', 'user_Reputation': 2008.0, 'user_Views': 289.0, 'user_id': 2377836.0}}