Add ldap logic