Univention Bugzilla – Bug 41648
slapd failed if line in slapd.conf to long. Affected at least ldap indexes (ldap/index/{eq, approx, etc.})
Last modified: 2018-03-27 11:55:20 CEST
If lines in slapd.conf are too long (>2048 chars) the slapd.conf do not start. Error: "Starting ldap server(s): slapd .../etc/ldap/slapd.conf: line 108: no indexes selected failed." This affected at least the indexes section which will be set bei UCR-Variables ldap/index/{eq, approx, etc.} So, the slapd runs perfectly fine if the line will be wrapped to a newline. e.g. index attr1,attr2 eq index attr3,attr4 eq
Created attachment 7780 [details] PoC patch to automatically wrap index lines
Created attachment 7784 [details] PoC patch to automatically wrap index lines
Fixed conffiles/etc/ldap/slapd.conf.d/40univention-ldap-server_database. If a index line is more than 2000 chars, the remaining attributes (+ the necessary config options ) are put on next line. univention-ldap.yaml merged to 4.2
Code review: OK ucs-test: OK Tests: OK. It was little bit difficult due to Bug #39501 but I've created new attributes YAML: I've changed the entry: r72335
<http://errata.software-univention.de/ucs/4.1/249.html>