Stop service
#service ldap stop
Make a backup copy - very important step :-)
#mv /etc/openldap/slapd.conf /etc/openldap/slapd.conf.20131124
Copy only necessary lines to new config
#grep -v "^#" /etc/openldap/slapd.conf|grep -v "^$" >/etc/openldap/slapd.conf
Start service
#service ldap start
Don't forget to check that service started:
#service ldap status
No comments:
Post a comment