Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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.

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
show 1 more comment

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.