Conditionally reconfigure logging for LDAP.