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

I've been configuring OpenLDAP on RHEL 6 and its seems you have run the following to rebuild the config dirs. I'm ok with that , but my issues is , say I want to change the server passwd , do I have to go through the whole process every time I change the config ? Is there a way of changing the slapd config after its been built using the RHEL6 method ?

below is the advice I've found on the net from

This example assumes that the file to convert from the old slapd configuration is located at /etc/openldap/slapd.conf and the new directory for OpenLDAP configuration is located at /etc/openldap/slapd.d/. Remove the contents of the new /etc/openldap/slapd.d/ directory:

rm -rf /etc/openldap/slapd.d/*

Run slaptest to check the validity of the configuration file and specify the new configuration directory: slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

Configure permissions on the new directory: chown -R ldap:ldap /etc/openldap/slapd.d

chmod -R 000 /etc/openldap/slapd.d

chmod -R u+rwX /etc/openldap/slapd.d

To clarify. I'm after help on how to edit the slapd configuration using the newer versions of openldap , where the config is held in a schema rather than the original slapd.conf

share|improve this question

Those instructions are for when you are converting from an old-style slapd.conf configuration file to a new-style slapd.d/* configuration directory. You only have to do this when moving your configuration. Once.

share|improve this answer
Even if he add to do again the whole process, creating a script to doing it is quite easy. :) – Anarko_Bizounours Jun 29 '11 at 15:04
I was after intructions on how to do configuration changes on the new style config. Impatient ? it was around 4 months ago :-) – AndyM Jul 1 '11 at 13:09
Anarko , adding a comment on your comment is quite easy also :) but not very helpfull regarding the orginal problem. – AndyM Jul 1 '11 at 13:10
Sorry about that. – Anarko_Bizounours Jul 4 '11 at 10:05
up vote -1 down vote accepted

Guys over at UNIX/Linux stack gave me a good answer.

share|improve this answer
Why accept your own answer saying you found no solution. Edit or post answer hoping people will help you now that your question is up again. – Anarko_Bizounours Jun 29 '11 at 15:05
Ok I've found the answer , can I have the downvotes removed ? – AndyM Jul 8 '11 at 9:11

Your Answer


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.