Fix debug setting in ldap classes