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 | 5ae8fa2df1e4e9b40200869ed946f3c8b9e4f2b3 (patch) | |
tree | 2174fb621cd8cb4c5312c0c2f592d675d3d7571e /source3/libads | |
parent | 3593e5baf7c3b334da390b027ef7d236ce318ccd (diff) | |
download | samba-5ae8fa2df1e4e9b40200869ed946f3c8b9e4f2b3.tar.gz samba-5ae8fa2df1e4e9b40200869ed946f3c8b9e4f2b3.tar.bz2 samba-5ae8fa2df1e4e9b40200869ed946f3c8b9e4f2b3.zip |
make sure we disable referrals in all ldap searches - they are badly
broken
(This used to be commit 022073d140bae960613127a6d9422e443a8098c6)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 1045b05812..7e51c203ca 100644 --- a/source3/libads/ldap.c +++ b/source3/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); |