With a little side of applesauce...

Wednesday, December 3, 2008

openldap - slapd.conf to cn=config

With openLDAP 2.4.11, the default configuration file, slapd.conf, has been moved into the LDAP backend. They make conversion easy, by using the following command:

sudo /usr/sbin/slapd -u openldap -g openldap -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d

(This is on Ubuntu Intrepid). Be aware that if you run this command multiple times, you may get duplicate configuration files in /etc/ldap/slapd.d/. To fix this, you simply rm -Rf the offending ldif file:

sudo rm -rf slapd.d/cn=config/cn=schema/cn={2}cosine.ldif


Gavin Henry said...

Also see:

OpenLDAP Quick Tips: Switch to the dynamic config backend (cn=config)

Anonymous said...

I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!

Sorry for offtopic