summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-28 00:47:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-28 00:47:06 +0000
commitbc828246dbe367252232e5baa54ee9fc9d53ca69 (patch)
tree906e947afc493c21639ecb9ff27cbef6a8c5a3ed
parent3cfd42e83b5f0ad41fd6a5f80b0264b545bb56bf (diff)
downloadsamba-bc828246dbe367252232e5baa54ee9fc9d53ca69.tar.gz
samba-bc828246dbe367252232e5baa54ee9fc9d53ca69.tar.bz2
samba-bc828246dbe367252232e5baa54ee9fc9d53ca69.zip
This needs to be #ifdef HAVE_LDAP.
(This used to be commit 2b54a2fc2c85ea139e2acdbbc2f14b969c0c6315)
-rw-r--r--source3/libads/ldap_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c
index fbc9eb433f..9e4b8a1de9 100644
--- a/source3/libads/ldap_utils.c
+++ b/source3/libads/ldap_utils.c
@@ -21,6 +21,8 @@
*/
#include "includes.h"
+
+#ifdef HAVE_LDAP
/*
a wrapper around ldap_search_s that retries depending on the error code
this is supposed to catch dropped connections and auto-reconnect
@@ -88,3 +90,4 @@ ADS_STATUS ads_search_retry_dn(ADS_STRUCT *ads, void **res,
return ads_do_search_retry(ads, dn, LDAP_SCOPE_BASE,
"(objectclass=*)", attrs, res);
}
+#endif