improved debug of ldap client