Which should be used in which scenarios?
Does ldap_search_init_page() also support to search with DirSync?
FYI:
http://msdn.microsoft.com/en-us/library/aa366972(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/aa366973(v=vs.85).aspx
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you make a search on a Directory, it’s not like in a database. The Directory is not supposed to give you back all the responses for your search (most of the time you not need them like in a google search). Directory servers assume good performances this way.
ldap_search_ext_sinitiate a search, it’s synschronous, and you can specify options like LDAP_OPT_SIZELIMIT and LDAP_OPT_TIMELIMIT (if they are available on the server). This API returns search result (if exists), and maybe more search result than a normal search.With
ldap_search_init_page()you initiate a kind of ‘find fist’, ‘find next’ search. This API does not return search result, but a structure tou can use inldap_get_next_page,ldap_get_next_page_s,ldap_get_paged_countandldap_search_abandon_page.ldap_get_next_pageandldap_get_next_page_scan return search result and the second one synchronously. This way allow you to retreive ALL the results for a search, be carefull it’s not the way a normal LDAP search is supposed to work, this is bad on the performance point of view.