simplify ldap handling
add simple LDAP Unit tests