dinkel / docker-openldap

OpenLDAP as a Docker image
MIT License
90 stars 111 forks source link

loglevel-configuration option #19

Open gaerfield opened 7 years ago

gaerfield commented 7 years ago

I'm trying to use the Prepopulate-functionality with one single ldif-file. Using Apache Directory Studio importing this specific ldif file runs without any problem. Trying the same ldif-File with the prepoluate-mechanism fails without any error or message. How can I turn on some more logging to identify the problem?

xgodon commented 7 years ago

i guess that you can do that in the entrypoint.sh the script does :

slapcat -n0 -F /etc/ldap/slapd.d -l /tmp/config.ldif sed -i "s/\(olcRootDN: cn=admin,cn=config\)/\1\nolcRootPW: ${sed_safe_password_hash}/g" /tmp/config.ldif you can add a sed to set olcLogLevel (see http://www.zytrax.com/books/ldap/ch6/#loglevel )