adding search ldap function