r18819: Fix build without LDAP.
authorGünther Deschner <gd@samba.org>
Fri, 22 Sep 2006 09:34:25 +0000 (09:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:01:03 +0000 (12:01 -0500)
Guenther

source/libads/gpo.c
source/libads/gpo_util.c
source/libsmb/gpo.c
source/utils/net_ads_gpo.c

index 9c3a133516a1f1c4c7e4c014d60b182e3adbeaa7..85809d341f50cf9260dc70296ccb250ee1fec25a 100644 (file)
@@ -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 */
index cabe9a32db5388fbfe7c3e7ffc28c147852bc739..aed99d694f5993f7eb85013cc4202e4e941c4c99 100644 (file)
@@ -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 */
index 0257138ece2944aa26ac7d0ce5f0d61082c1440a..6be2ce2f7958f4019b8377f3bc47d33c6ce0ed00 100644 (file)
@@ -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 */
index 2a044215b4ec684565327c8d8ed7c8d19bd2c9cf..f1a3d935b75889956ba504c1c1e8d25cc2fc8691 100644 (file)
@@ -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 */