summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/gpo.c4
-rw-r--r--source3/libads/gpo_util.c4
-rw-r--r--source3/libsmb/gpo.c4
-rw-r--r--source3/utils/net_ads_gpo.c2
4 files changed, 13 insertions, 1 deletions
diff --git a/source3/libads/gpo.c b/source3/libads/gpo.c
index 9c3a133516..85809d341f 100644
--- a/source3/libads/gpo.c
+++ b/source3/libads/gpo.c
@@ -20,6 +20,8 @@
#include "includes.h"
+#ifdef HAVE_LDAP
+
ADS_STATUS ads_parse_gp_ext(TALLOC_CTX *mem_ctx,
const char *extension_raw,
struct GP_EXT *gp_ext)
@@ -678,3 +680,5 @@ ADS_STATUS ads_get_gpo_list(ADS_STRUCT *ads,
return ADS_ERROR(LDAP_SUCCESS);
}
+
+#endif /* HAVE_LDAP */
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 */
diff --git a/source3/libsmb/gpo.c b/source3/libsmb/gpo.c
index 0257138ece..6be2ce2f79 100644
--- a/source3/libsmb/gpo.c
+++ b/source3/libsmb/gpo.c
@@ -20,6 +20,8 @@
#include "includes.h"
+#ifdef HAVE_LDAP
+
#define GPT_INI_SECTION_GENERAL "General"
#define GPT_INI_PARAMETER_VERSION "Version"
#define GPT_INI_PARAMETER_DISPLAYNAME "displayName"
@@ -165,3 +167,5 @@ TicketValidateClient = 1
signature="$CHICAGO$"
Revision=1
*/
+
+#endif /* HAVE_LDAP */
diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c
index 2a044215b4..f1a3d935b7 100644
--- a/source3/utils/net_ads_gpo.c
+++ b/source3/utils/net_ads_gpo.c
@@ -446,4 +446,4 @@ int net_ads_gpo(int argc, const char **argv)
return net_run_function(argc, argv, func, net_ads_gpo_usage);
}
-#endif
+#endif /* HAVE_ADS */