openldap with static configuration in Ubuntu

04
Nov

If after configuring an openLDAP server on Ubuntu there’s no way no connect with the manager account (i.e. it gives an “ldap_bind: Invalid credentials (49)”) it’s because the ubuntu package is configured by default to use the cn=config . This means that no matter what password you have written to the ldap.conf config file, because ldap will don’t write it.

To force openldap to read the ldap.conf file you must:

  1. Stop the server
  2. Change the directory name of /etc/ldap/slapd.d to another
  3. Edit the file ‘/etc/default/slapd’ and configure the SLAPD_CONF parameter, typically to /etc/ldap/ldap.conf
  4. Start the server

More info: http://www.zytrax.com/books/ldap/ch6/slapd-config.html

Tags:  
  1. Oh my goodness! Awesome article dude! Thank you so much, However I am going through issues with
    your RSS. I don’t understand the reason why I can’t join it.
    Is there anybody having similar RSS problems? Anyone who
    knows the solution can you kindly respond? Thanx!!