Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have just installed fresh Centos 6.2 with openldap and samba with yum command. I'm having a bit of issue with finding the slapd.conf file. There is a folder for slap.d/ but no conf file in it by default. I can see folders

cacerts 
schema
sldap.d

and ldap.conf file.

I have also checked in Fedora 15 and found same situation taht there is no slapd.conf file. So now where to start ? I have googled but I found openldap configurations with centos 5.x or ubuntu which is following the configuration file from /etc/openldap/slapd.conf

share|improve this question

Note that OpenLDAP no longer reads its configuration from the /etc/openldap/slapd.conf file. Instead, it uses a configuration database located in the /etc/openldap/slapd.d/ directory.

Source: The official upstream documentation for RHEL6

The slapd configuration consists of LDIF entries organized in a hierarchical directory structure, and the recommended way to edit these entries is to use the server utilities described in Section 16.1.2.1, “Overview of OpenLDAP Server Utilities”.

In other words, RHEL6 (and CentOS6) no longer has a single slapd.conf file to configure openldap. You should use the tools lised in section 16.1.2.1 to configure openldap.

If you have an old config you wish to import, you can do that using this command:
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/

share|improve this answer
4  
Thanks for the reply. Well I does not know from where I should take my 1st step to configure openldap server.This is a new style & on the google I mostly found the complete configuration for how to configure openldap server using old method i.e slapd.conf file.Can you kindly write the steps so I may fallow them ? Shouuld be thankfull – garden air Mar 19 '12 at 10:38
1  
You can convert using slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/ as shown in the documentation linked. – Brian Sep 6 '15 at 11:07

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.