diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-09 15:06:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-09 15:06:51 +0000 |
commit | 022073d140bae960613127a6d9422e443a8098c6 (patch) | |
tree | 8d727a7fa368286aa978a216f995b0281e9f1911 /source/libads | |
parent | 07de8418369dad1f015369e70e9303fea4130295 (diff) | |
download | samba-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.c | 3 |
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); |