Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ldapadd command

Posted on 2014-09-09
4
Medium Priority
?
721 Views
Last Modified: 2014-09-09
I am on Red Hat 6.x

I have ldap running on my system, as follows:

[root@mmclnt1 openldap]# yum install openldap-servers
...
Package openldap-servers-2.4.23-34.el6_5.1.x86_64 already installed and latest version
Nothing to do

[root@mmclnt1 openldap]# service slapd start
Starting slapd: ln: creating hard link `/var/run/slapd.pid': File exists

[root@mmclnt1 openldap]# chkconfig slapd on
[root@mmclnt1 openldap]#

Open in new window


I also checked the following:

[root@mmclnt1 openldap]# chkconfig --list
...
slapd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
...

[root@mmclnt1 openldap]# yum search ldap
Loaded plugins: product-id, rhnplugin, security, 
============================== N/S Matched: ldap ===============================
apr-util-ldap.x86_64 : APR utility library LDAP support
bind-dyndb-ldap.x86_64 : LDAP back-end plug-in for BIND
compat-openldap.i686 : OpenLDAP compatibility shared libraries.
compat-openldap.x86_64 : OpenLDAP compatibility shared libraries.
krb5-server-ldap.i686 : The LDAP storage plugin for the Kerberos 5 KDC
krb5-server-ldap.x86_64 : The LDAP storage plugin for the Kerberos 5 KDC
ldapjdk.x86_64 : The Mozilla LDAP Java SDK
mod_authz_ldap.x86_64 : LDAP authorization module for the Apache HTTP Server
openldap.i686 : LDAP support libraries
openldap.x86_64 : LDAP support libraries
openldap-clients.x86_64 : LDAP client utilities
openldap-devel.i686 : LDAP development libraries and header files
openldap-devel.x86_64 : LDAP development libraries and header files
openldap-servers.x86_64 : LDAP server
pam_ldap.i686 : PAM module for LDAP
pam_ldap.x86_64 : PAM module for LDAP
perl-LDAP.noarch : LDAP Perl module
perl-Mozilla-LDAP.x86_64 : LDAP Perl module that wraps the OpenLDAP C SDK
php-ldap.x86_64 : A module for PHP applications that use LDAP
python-ldap.x86_64 : An object-oriented API to access LDAP directory servers
libldb.i686 : A schema-less, ldap like, API and database
libldb.x86_64 : A schema-less, ldap like, API and database
migrationtools.noarch : Migration scripts for LDAP
nss-pam-ldapd.i686 : An nsswitch module which uses directory servers
nss-pam-ldapd.x86_64 : An nsswitch module which uses directory servers

Open in new window


So now I want to run the ldapadd command, however, the system can not the command:

[root@mmclnt1 openldap]# ldapadd
-bash: ldapadd: command not found
[root@mmclnt1 openldap]#

Open in new window



How can I diagnose or resolve the problem ?

Thanks
0
Comment
Question by:Anthony Lucia
  • 2
  • 2
4 Comments
 

Author Comment

by:Anthony Lucia
ID: 40312402
By the way, I also did the following:

[root@mmclnt1 openldap]# ps -ef | grep slapd
ldap     23608     1  0 10:38 ?        00:00:00 /usr/sbin/slapd -h  ldap:/// ldapi:/// -u ldap
root     23856 20519  0 11:49 pts/2    00:00:00 grep slapd

Open in new window

0
 
LVL 12

Accepted Solution

by:
Radek Baranowski earned 2000 total points
ID: 40312629
you probably have only server installed, no client utilities.

you did only yum search, not installation:

yum search ldap

Open in new window


try to install all packages:

yum install *openldap* -y

Open in new window


and if you are sure your slapd process is fully configured an running fine, then  you should be able to use ldap commands after that.

please let me know if that helped (installing other openldap packages)
0
 

Author Comment

by:Anthony Lucia
ID: 40312765
Yes, the following command fixed the issue

yum install *openldap* -y

Open in new window


Thank you
0
 
LVL 12

Expert Comment

by:Radek Baranowski
ID: 40312980
nice one, happy to help!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question