Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What command needed to disable LDAP service in CentOS 6.3. I tried:

authconfig --disableldap

but it doesn't work.

I am trying to run ISC-DHCP in my machine but it always shows

Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file.

So I tried to disable LDAP which I never installed, any Idea?

Edit: These are my steps I made for installing ISC-DHCP:

#yum install dhcp

#cp /usr/share/doc/dhcp*/dhcp.conf.sample /etc/dhcp/dhcpd.conf

and when I tried:

#/etc/rc.d/init.d/dhcp start

I got: FAILED

Then I used:

#dhcpd -t

I got:

Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file.

share|improve this question
    
Can you post the contents of /etc/nsswitch.conf and/or verify that ldap entries have been removed? – Matt Jul 16 '15 at 1:37

You don't specify if you are using OpenLDAP or 389, so I'm assuming the latter, which is the standard in RHEL/CentOS/Fedora. You need to issue the following commands as root, or using sudo:


 # service dirsrv stop
 # chkconfig dirsrv off
You still need to adjust other configuration items like /etc/nsswitch.conf if you have been using LDAP to resolve any of the databases listed in there.

In the event that Pluggable Authentication Modules(PAM) are being used PAM will also need to be configured to stop using LDAP. This can be done using

pam-config -d --ldap

That in addition to the previously mentioned changes will disable LDAP authentication.

share|improve this answer
    
it doesn't recognize dirsrv. actually I am trying to run ISC-DHCP in my machine but it always shows Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file. So I tried to disable LDAP which I never installed, any Idea? – Aan Apr 8 '13 at 11:35
    
You definitely should have mention these bits in the original question, care to edit it? It'd provide context for other people reading your question. – dawud Apr 8 '13 at 11:45
    
I have added them. – Aan Apr 8 '13 at 11:49
    
I did not find dhcp-ldap, where it can be found? – Aan Apr 8 '13 at 12:02
1  
There used to be one in CentOS 5. Does the reading of /usr/share/doc/dhcp-$ver/README.ldap help? have you modified the dhcp configuration? if yes, how? dhcp should not be querying LDAP unless configured to do so. – dawud Apr 8 '13 at 12:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.