Implement ldap search and add