[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: can't run ldapsearch and slapadd command after install openldap
- To: "Wang, Hui" <holly.wang@csun.edu>
- Subject: Re: can't run ldapsearch and slapadd command after install openldap
- From: Igor Shmukler <igor.shmukler@gmail.com>
- Date: Thu, 26 Mar 2015 00:05:26 +0200
- Cc: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CiFVfh3tAzrJjSmhvL/WotxPRVKg7Q6s2FafeFxnLI0=; b=NGA07aA3pU1+y6dnBFgZDGE4ZsYkyiYgJaBtJjonovP6j7wGjqeuBfUl7Xm0jZG8LQ HysQ4tsM5ECSDf3qCDHo10oeeIPeNfQkfirp4EWoaBBb/Jv1cKtPtzo7IAjvfbD5ysCE R34zKoAUkVQQoYmDck6g6HZRf2PR4XE11WGqZATUQ0QCYThF6IX+dczk6Zkt8+7UDodO 84lHBOpvnCPZLEvAZ5a0xZsnon9GkhSraRFtongpVt0ZC+/zJeCMN2a7EPrkkx0DMtIs XfF4I0MR0oPVoVWUfKb3M1jgeL4GGigIw8O1W6l2rh+xatv7AgVMFGB7aevhdfOJs5Pq bTlA==
- In-reply-to: <CO2PR07MB5569EC5970EFD526F3BDF65E40B0@CO2PR07MB556.namprd07.prod.outlook.com>
- References: <CO2PR07MB5561E516007DC981BED7E80E40B0@CO2PR07MB556.namprd07.prod.outlook.com> <CAA1SNA2nit6R5AfL=7Pv3qiZz7GhtKW+U84-_K0ibyk61YwSKQ@mail.gmail.com> <CO2PR07MB5569EC5970EFD526F3BDF65E40B0@CO2PR07MB556.namprd07.prod.outlook.com>
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 <holly.wang@csun.edu> 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:igor.shmukler@gmail.com]
> 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 <holly.wang@csun.edu> 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
>>