2

My openldap (version 2.4.31) makes directory /etc/ldap/slapd.d as its default configuration files rather than /etc/ldap/slapd.conf as the old version does. I found it becomes more complicated to configure openldap than ever.

How should I configure openldap with slapd.d?

Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47
seanlook
  • 559
  • 2
  • 10
  • 18
  • What's the good reasons for openldap to make slapd.d as defualt config files? How to change my `rootpw` for rootdn login ? – seanlook Jan 16 '15 at 12:31

1 Answers1

3

No, if you understand it, it becomes pretty simple and more effective as you don't have to restart the OpenLDAP server after a config change.

As you may have noticed, /etc/ldap/slapd.d is a directory, not a file and it contains a set of LDIF files that together create a complete LDAP tree named cn=config. You modify this tree not by editing files, but by standard LDAP operations like ldapadd or ldapmodify or with graphical tools like Apache Directory Studio.

See the manual for more information.

Sven
  • 98,649
  • 14
  • 180
  • 226
  • You mean I don't have to care about my configrations because everything (even base dn) can be modified with client tools? – seanlook Jan 16 '15 at 12:30
  • Exactly. I've no idea if renaming the base DN is possible tough in a populated tree at all, regardless of the config method. – Sven Jan 16 '15 at 12:33
  • Would you give me an example to change my backend from hdb to bdb ? And what's command to search entries from LDAP directory. `ldapsearch -x -D cn=config -W -b cn=config` alwayes told me `Invalid credentials` but I give the right password. Thank you! – seanlook Jan 20 '15 at 08:12
  • Please ask this as a new question. – Sven Jan 20 '15 at 08:14