change to ANR and add LDAP_SEARCH_QUERY