Howard Guo wrote:
If you are running OpenLDAP service on Tumbleweed, please take note of several important changes made in the recent package upgrades,
Thanks for pointing out this.
While previously all database backend modules were built into the daemon executable (hence automatically loaded), now they require to be loaded on-demand. Depending on your choice of LDAP configuration style, you may need to take the following action: - If you use slapd.conf, please add directive "modulepath" and "moduleload" to the file, and specify all database engine modules used by your OpenLDAP setup. The default configuration contains an example for your reference: https://build.opensuse.org/package/view_file/network:ldap/openldap2/slapd.co...
IMHO it's not necessary to add (platform-specific) modulepath to slapd.conf or cn=config because the default path used with moduleload is defined at compile-time. I've double-checked my local installations based on the new packages on various platforms that there is *no* modulepath directive set. You would only need to set modulepath if you have custom backend or overlay modules installed into a separate location which is a very exotic use-case likely not relevant to 99.9% of the openSUSE/SLES users.
- If you use Online Configuration (cn=config), the same directives must be added to the configuration, however there are many ways to do this, and in general the procedure is more complicated.
Note that it was confirmed that static configuration (slapd.conf) will still be supported in upcoming OpenLDAP 2.5.
One way to accomplish it is: * Shut down OpenLDAP server. * Temporarily remove olcDatabase from cn=config by moving its entries out of /etc/openldap/slapd.d/cn=config
NO! Do not muck with the LDIF files in /etc/openldap/slapd.d/! You have been warned. While the LDIF files in /etc/openldap/slapd.d look just like text files the only officially supported way to directly tweak them is to 1. export cn=config with slapcat to an external LDIF file, 2. edit this external LDIF file, 3. remove *all* files in /etc/openldap/slapd.d/, 4. import external LDIF file to cn=config again.
Here's a link to external website with more information on this topic: http://www.zytrax.com/books/ldap/ch6/slapd-config.html#use-modules
Preferrably the OpenLDAP 2.4 Administrator's Guide should be read: http://www.openldap.org/doc/admin24/slapdconf2.html I'm also reading the openldap-technical mailing list with additional attention for postings referring to these openSUSE packages. Ciao, Michael.