ldap_search_ext_s and non-const attrs parameter