adapted to use common dnd_ldap