some helper for ldap