Sorry. I misunderstood your message. Thought that you were missing slapd. Did you install ldap-utils? I believe that ldapsearch(1) might a part of ldap-utils package [probably depends on the distro], and it is installed separately.
On Thu, Mar 26, 2015 at 12:01 AM, Wang, Hui <[email protected]> wrote: > Igor > > What file I should look for under /usr/sbin? I got this > > [root@oldaptest01 sbin]# pwd > /usr/sbin > [root@oldaptest01 sbin]# ldapsearch > -bash: ldapsearch: command not found > > [root@oldaptest01 sbin]# ps auxww | grep slapd > root 3094 0.0 24.3 1411584 468476 ? Ssl 11:10 0:00 > /opt/libexec/slapd > root 7574 0.0 0.0 103252 840 pts/0 S+ 14:59 0:00 grep slapd > > > > -----Original Message----- > From: Igor Shmukler [mailto:[email protected]] > Sent: Wednesday, March 25, 2015 12:40 PM > To: Wang, Hui > Subject: Re: can't run ldapsearch and slapadd command after install openldap > > Hello, > > Try: $ ps auxww | grep slapd > > BTW, did you check /usr/sbin as to whether binaries are there? On my machine > they are in the /usr/sbin directory. > > Sincerely, > > Igor Shmukler > > On Wed, Mar 25, 2015 at 9:06 PM, Wang, Hui <[email protected]> wrote: >> Hi, All >> >> I am still working on set up a new openldap server on redhat linux machine. >> I am following the steps offered in following site: >> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.openldap.org_d >> oc_admin24_quickstart.html&d=AwIBaQ&c=Oo8bPJf7k7r_cPTz1JF7vEiFxvFRfQtp >> -j14fFwh71U&r=GJzNE-na5kc9aOr5JDyH43J-pL3ONUA5CuZ1SXkuaxM&m=GBtUhh13Xy >> aRZP5tODMNFbEJJAg_qvoUiAUFCjZDrSU&s=MSNLQQwkvXAf76wBrcbRiZ0QF7U2GBM-Zd >> LZjQ5LAL8&e= >> >> I am at step 9, I started the slapd, but can't do LDAP search. I can't run >> slapadd command either. >> >> You can see my slapd is up and running, but there are nothing installed in >> /usr/local/bin. What should I install and how can I make ldapsearch and >> slapadd command run? >> >> Thanks >> >> >> >> [root@oldaptest01 sbin]# pgrep slapd >> 3094 >> [root@oldaptest01 openldap-2.4.40]# cd /usr/local/bin >> [root@oldaptest01 bin]# ldapsearch >> -bash: ldapsearch: command not found >> [root@oldaptest01 bin]# cd /usr/local/sbin >> [root@oldaptest01 sbin]# slapadd >> -bash: slapadd: command not found >> >> >> >> >> Hui Wang >>
