1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

make sure we disable referrals in all ldap searches - they are badly

broken
(This used to be commit 022073d140bae960613127a6d9422e443a8098c6)
This commit is contained in:
Andrew Tridgell 2002-07-09 15:06:51 +00:00
parent 3593e5baf7
commit 5ae8fa2df1

View File

@ -464,6 +464,9 @@ ADS_STATUS ads_do_search(ADS_STRUCT *ads, const char *bind_path, int scope,
timeout.tv_usec = 0;
*res = NULL;
/* see the note in ads_do_paged_search - we *must* disable referrals */
ldap_set_option(ads->ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
rc = ldap_search_ext_s(ads->ld, utf8_path, scope, utf8_exp,
search_attrs, 0, NULL, NULL,
&timeout, LDAP_NO_LIMIT, (LDAPMessage **)res);