From 5ae8fa2df1e4e9b40200869ed946f3c8b9e4f2b3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Jul 2002 15:06:51 +0000 Subject: make sure we disable referrals in all ldap searches - they are badly broken (This used to be commit 022073d140bae960613127a6d9422e443a8098c6) --- source3/libads/ldap.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit