summaryrefslogtreecommitdiff
path: root/source3/libads/gpo_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads/gpo_util.c')
-rw-r--r--source3/libads/gpo_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libads/gpo_util.c b/source3/libads/gpo_util.c
index cabe9a32db..aed99d694f 100644
--- a/source3/libads/gpo_util.c
+++ b/source3/libads/gpo_util.c
@@ -20,6 +20,8 @@
#include "includes.h"
+#ifdef HAVE_LDAP
+
#define DEFAULT_DOMAIN_POLICY "Default Domain Policy"
#define DEFAULT_DOMAIN_CONTROLLERS_POLICY "Default Domain Controllers Policy"
@@ -499,3 +501,5 @@ ADS_STATUS gpo_password_policy(ADS_STRUCT *ads,
ads_memfree(ads, dn);
return ADS_ERROR(LDAP_SUCCESS);
}
+
+#endif /* HAVE_LDAP */