Discussion:
can't run ldapsearch and slapadd command after install openldap
Wang, Hui
2015-03-25 19:06:35 UTC
Permalink
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:

http://www.openldap.org/doc/admin24/quickstart.html

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



[***@oldaptest01 sbin]# pgrep slapd
3094
[***@oldaptest01 openldap-2.4.40]# cd /usr/local/bin
[***@oldaptest01 bin]# ldapsearch
-bash: ldapsearch: command not found
[***@oldaptest01 bin]# cd /usr/local/sbin
[***@oldaptest01 sbin]# slapadd
Quanah Gibson-Mount
2015-03-25 19:25:31 UTC
Permalink
Content preview: --On Wednesday, March 25, 2015 8:06 PM +0000 "Wang, Hui" <***@csun.edu>
wrote: > Hi, All > > I am still working on set up a new openldap server on
http://www.openldap.org/doc/admin24/quickstart.html > > 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? [...]
Content analysis details: (-1.8 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
-0.0 SPF_PASS SPF: sender matches SPF record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid

--On Wednesday, March 25, 2015 8:06 PM +0000 "Wang, Hui"
Hi, All
I am still working on set up a new openldap server on redhat linux
http://www.openldap.org/doc/admin24/quickstart.html
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?
No one knows what slapd package(s) you installed, or where they installed
the binaries. If you built this yourself, then they'll be where ever you
told them to be located. This is not really an openldap question. My
general suggestion would be to take some courses in basic linux system
administration, so you can become familiar with package management,
building software, etc.

--Quanah


--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Igor Shmukler
2015-03-25 22:05:26 UTC
Permalink
Content preview: 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. [...]

Content analysis details: (-2.0 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: proofpoint.com]
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(igor.shmukler[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature

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.
Igor
What file I should look for under /usr/sbin? I got this
/usr/sbin
-bash: ldapsearch: command not found
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-----
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
Post by Wang, Hui
Hi, All
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
3094
-bash: ldapsearch: command not found
-bash: slapadd: command not found
Hui Wang
Mattes
2015-03-25 23:00:17 UTC
Permalink
Content preview: Am Mittwoch, 25. März 2015 23:05 CET, Igor Shmukler <***@gmail.com>
schrieb: > 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
Post by Igor Shmukler
installed separately. [...]
Content analysis details: (-1.9 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: proofpoint.com]
-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Mailman-Approved-At: Sun, 29 Mar 2015 03:29:08 +0000
Cc: "Wang, Hui" <***@csun.edu>,
"openldap-***@openldap.org" <openldap-***@openldap.org>
X-BeenThere: openldap-***@openldap.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: OpenLDAP Technical Discussion list <openldap-technical.openldap.org>
List-Unsubscribe: <http://www.openldap.org/lists/mm/options/openldap-technical>,
<mailto:openldap-technical-***@openldap.org?subject=unsubscribe>
List-Archive: <http://www.openldap.org/lists/openldap-technical/>
List-Post: <mailto:openldap-***@openldap.org>
List-Help: <mailto:openldap-technical-***@openldap.org?subject=help>
List-Subscribe: <http://www.openldap.org/lists/mm/listinfo/openldap-technical>,
<mailto:openldap-technical-***@openldap.org?subject=subscribe>
Errors-To: openldap-technical-***@openldap.org
Sender: "openldap-technical" <openldap-technical-***@openldap.org>
X-Spam-Score: -1.9 (-)
X-Spam-Report: Spam detection software, running on the system "gauss.openldap.net", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.

Content preview: Am Mittwoch, 25. März 2015 23:05 CET, Igor Shmukler <***@gmail.com>
schrieb: > 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
Post by Igor Shmukler
installed separately. [...]
Content analysis details: (-1.9 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: proofpoint.com]
-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
Post by Igor Shmukler
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.
Please READ the mails you are replying to - the OP is installing from source.
Unless he changed --prefix and or --exec-prefix all tools should end up under /usr/local/bin.

@Hui Wang:
How experienced are you with Unix/Linux? CD-ing into /usr/local/bin and then running
ldapadd will not automatically run the binary in that directory (unlike on MS windows).
You can either add /usr/local/bin to your PATH or run the program like this:
/usr/local/bin/ldapadd

HTH Ralf Mattes
Post by Igor Shmukler
Igor
What file I should look for under /usr/sbin? I got this
/usr/sbin
-bash: ldapsearch: command not found
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-----
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
Post by Wang, Hui
Hi, All
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
3094
-bash: ldapsearch: command not found
-bash: slapadd: command not found
Hui Wang
Loading...