From 1cf17edc14ebd379b982b589a66e86316ef7087b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 24 Sep 2006 03:15:58 +0000 Subject: [PATCH] r18869: two build fixes for systems without ldap the first is to not enable the ldap ldb backend just yet. This will need configure tests to conditionally include. We should be able to use the m4 files from lib/ldb/ The 2nd is to fix libads/gpo.o not to publicly prototype a function that needs ldap.h --- source/Makefile.in | 3 ++- source/include/ads_protos.h | 6 ++++++ source/libads/gpo.c | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/source/Makefile.in b/source/Makefile.in index 1a4c63df0a1..cc2c355f1c0 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -789,7 +789,8 @@ LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/schema.o lib/ldb/m lib/ldb/modules/objectclass.o \ lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o -LDB_LDAP_OBJ=lib/ldb/ldb_ldap/ldb_ldap.o +# disabled until build issues sorted out +# LDB_LDAP_OBJ=lib/ldb/ldb_ldap/ldb_ldap.o LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ} diff --git a/source/include/ads_protos.h b/source/include/ads_protos.h index a566714d629..b5f323774d3 100644 --- a/source/include/ads_protos.h +++ b/source/include/ads_protos.h @@ -87,3 +87,9 @@ void ads_process_results(ADS_STRUCT *ads, LDAPMessage *res, BOOL(*fn)(char *, void **, void *), void *data_area); void ads_dump(ADS_STRUCT *ads, LDAPMessage *res); + +ADS_STATUS ads_parse_gpo(ADS_STRUCT *ads, + TALLOC_CTX *mem_ctx, + LDAPMessage *res, + const char *gpo_dn, + struct GROUP_POLICY_OBJECT *gpo); diff --git a/source/libads/gpo.c b/source/libads/gpo.c index 1d5cdfa0268..84898ab3871 100644 --- a/source/libads/gpo.c +++ b/source/libads/gpo.c @@ -362,11 +362,11 @@ ADS_STATUS ads_delete_gpo_link(ADS_STRUCT *ads, return ads_gen_mod(ads, link_dn, mods); } -ADS_STATUS ads_parse_gpo(ADS_STRUCT *ads, - TALLOC_CTX *mem_ctx, - LDAPMessage *res, - const char *gpo_dn, - struct GROUP_POLICY_OBJECT *gpo) + ADS_STATUS ads_parse_gpo(ADS_STRUCT *ads, + TALLOC_CTX *mem_ctx, + LDAPMessage *res, + const char *gpo_dn, + struct GROUP_POLICY_OBJECT *gpo) { ZERO_STRUCTP(gpo); -- 2.11.4.GIT