Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ldapadd command

Posted on 2014-09-09
4
Medium Priority
?
663 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

664 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