OpenLDAP RHEL 6

Posted by AndyM on Server Fault See other posts from Server Fault or by AndyM
Published on 2011-03-11T15:30:09Z Indexed on 2011/03/11 16:12 UTC
Read the original article Hit count: 316

Filed under:
|

Hi all

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 http://www.linuxtopia.org/online_books/rhel6/rhel_6_migration_guide/rhel_6_migration_ch07s03.html

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

© Server Fault or respective owner

Related posts about redhat

Related posts about ldap