Added search to ldap internal api