Hi, All
Sorry to bother everyone on this list. I am new to OPENLDAP server and also this is first time I work as a linux admin to install something by myself.
My openldap 2.4.40 is up and running, and I also I found the ldapadd commend under /opt/bin, is there anything else I missed which caused the ldapadd doesn't run?
Thank you all
Hui Wang from CSUN
[root@oldaptest01 bin]# ps auxww | grep slapd root 3094 0.0 6.7 1411584 129248 ? Ssl Mar25 0:00 /opt/libexec/slapd root 32481 0.0 0.0 103252 840 pts/0 S+ 13:40 0:00 grep slapd
[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]#
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.
--On Friday, March 27, 2015 4:50 PM -0500 Dan White dwhite@cafedemocracy.org wrote:
[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.
Again, this issue has zero to do with OpenLDAP. Again, I strongly advise you to take some classes in basic linux system administration.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah
Thank you for your advice. I will look for such class to take.
H
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: Friday, March 27, 2015 2:21 PM To: Wang, Hui Cc: openldap-technical@openldap.org Subject: Re: still can't run ldapadd command after install openldap
--On Friday, March 27, 2015 4:50 PM -0500 Dan White dwhite@cafedemocracy.org wrote:
[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.
Again, this issue has zero to do with OpenLDAP. Again, I strongly advise you to take some classes in basic linux system administration.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Wang, Hui wrote:
My openldap 2.4.40 is up and running, and I also I found the ldapadd commend under /opt/bin, is there anything else I missed which caused the ldapadd doesn't run?
[root@oldaptest01 bin]# [root@oldaptest01 bin]# ldapadd -x -D "cn=Directory Manager,o=csun" -W -f example.ldif -bash: ldapadd: command not found
Did you try /opt/bin/ldapadd [..] ?
On most systems the current directory is not in $PATH and /opt/bin seems also not to be in your $PATH.
Ciao, Michael.
openldap-technical@openldap.org