summaryrefslogtreecommitdiffstats
path: root/source/libads
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-09 15:06:51 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-09 15:06:51 +0000
commit022073d140bae960613127a6d9422e443a8098c6 (patch)
tree8d727a7fa368286aa978a216f995b0281e9f1911 /source/libads
parent07de8418369dad1f015369e70e9303fea4130295 (diff)
downloadsamba-022073d140bae960613127a6d9422e443a8098c6.tar.gz
samba-022073d140bae960613127a6d9422e443a8098c6.tar.xz
samba-022073d140bae960613127a6d9422e443a8098c6.zip
make sure we disable referrals in all ldap searches - they are badly
broken
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/ldap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 1045b058125..7e51c203ca4 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -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);