用于Apache-ds LDAP的Linux命令

时间:2013-11-26 10:48:04

标签: apacheds

Apache-ds LDAP 服务器的 Linux命令是什么来执行以下操作

  • 架构导入(LDIF文件导入)
  • 在objectClass上搜索LDAP
  • LDAP添加/修改/删除操作

1 个答案:

答案 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