added the LDAP part (it is almost complete)