You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Cokue <79...@qq.com> on 2017/09/08 08:40:06 UTC

How to use LDAP command line

Hello!     I have a quesetion when reading user guide, can you give me some suggestions? Thanks a lot! The question is that, I can not find ldapadd/ldapmodify... command line in my linux system, and I did not find which tools should be installed in user guide:


 "The current solution is to extract a LDIF from ApacheDS. You can do so either by using Apache Directory Studio, or through a script using the slapsearch utility, on the partition you are interested in."$ ldapsearch -D "uid=admin,ou=system" -w secret -p 10389 -h localhost -b "dc=example,dc=com" -s sub "(ObjectClass=*)" * + > backup.ldif Best regards!
                     huang

Re: How to use LDAP command line

Posted by Emmanuel Lécharny <el...@gmail.com>.

Le 08/09/2017 à 10:40, Cokue a écrit :
> Hello!     I have a quesetion when reading user guide, can you give me some suggestions? Thanks a lot! The question is that, I can not find ldapadd/ldapmodify... command line in my linux system, and I did not find which tools should be installed in user guide:
>
>
>  "The current solution is to extract a LDIF from ApacheDS. You can do so either by using Apache Directory Studio, or through a script using the slapsearch utility, on the partition you are interested in."$ ldapsearch -D "uid=admin,ou=system" -w secret -p 10389 -h localhost -b "dc=example,dc=com" -s sub "(ObjectClass=*)" * + > backup.ldif Best regards!
>                      huang

You need to install the OpenLDAP command line tools (this should be
found in the ldap-utils package)

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org