[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: still can't run ldapadd command after install openldap



On 03/27/15 20:45 +0000, Wang, Hui wrote:
[root@oldaptest01 bin]# pwd
/opt/bin
[root@oldaptest01 bin]# ls -l
total 2268
lrwxrwxrwx 1 root root     10 Mar 25 10:34 ldapadd -> ldapmodify
-rwxr-xr-x 1 root root 264824 Mar 25 10:34 ldapcompare
-rwxr-xr-x 1 root root 265432 Mar 25 10:34 ldapdelete
-rwxr-xr-x 1 root root 265624 Mar 25 10:34 ldapexop
-rwxr-xr-x 1 root root 277336 Mar 25 10:34 ldapmodify
-rwxr-xr-x 1 root root 265016 Mar 25 10:34 ldapmodrdn
-rwxr-xr-x 1 root root 264216 Mar 25 10:34 ldappasswd
-rwxr-xr-x 1 root root 287864 Mar 25 10:34 ldapsearch
-rwxr-xr-x 1 root root 155256 Mar 25 10:34 ldapurl
-rwxr-xr-x 1 root root 262648 Mar 25 10:34 ldapwhoami

[root@oldaptest01 bin]# [root@oldaptest01 bin]# ldapadd -x -D "cn=Directory Manager,o=csun" -W -f example.ldif
-bash: ldapadd: command not found
[root@oldaptest01 bin]#

You've installed your ldap binaries in a location which is not in your
path. Try adding /opt/bin to your path.

--
Dan White