From 01498c6bc57e8e137ef57fed9acffedccfa03e93 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 25 Mar 2010 16:21:12 +0100 Subject: Fix LDAP search paths for IPA HBAC - use domain_to_basedn() to construct LDAP search paths for IPA HBAC - move domain_to_basedn() to a separate file to simplify the build of a test --- src/providers/ipa/ipa_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/providers/ipa/ipa_common.h') diff --git a/src/providers/ipa/ipa_common.h b/src/providers/ipa/ipa_common.h index 54da6c8a3..77628189c 100644 --- a/src/providers/ipa/ipa_common.h +++ b/src/providers/ipa/ipa_common.h @@ -32,7 +32,7 @@ struct ipa_service { struct krb5_service *krb5_service; }; -/* the following define is used to keep track of the options in the ldap +/* the following defines are used to keep track of the options in the ldap * module, so that if they change and ipa is not updated correspondingly * this will trigger a runtime abort error */ #define IPA_OPTS_BASIC_TEST 32 @@ -64,6 +64,8 @@ struct ipa_options { struct krb5_ctx *auth_ctx; }; +int domain_to_basedn(TALLOC_CTX *memctx, const char *domain, char **basedn); + /* options parsers */ int ipa_get_options(TALLOC_CTX *memctx, struct confdb_ctx *cdb, -- cgit