diff options
author | Sumit Bose <sbose@redhat.com> | 2010-03-25 16:21:12 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-25 12:14:14 -0400 |
commit | beaaf02fe968b216d0633c92592a1fd9daad30ec (patch) | |
tree | b8633c3ee42f1c902f0d8bec834d08fc35111d5f /src/providers/ipa/ipa_common.h | |
parent | 6bcdb688a3d1319ded1073f08e0350de9e5ba94e (diff) | |
download | sssd-beaaf02fe968b216d0633c92592a1fd9daad30ec.tar.gz sssd-beaaf02fe968b216d0633c92592a1fd9daad30ec.tar.xz sssd-beaaf02fe968b216d0633c92592a1fd9daad30ec.zip |
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
Diffstat (limited to 'src/providers/ipa/ipa_common.h')
-rw-r--r-- | src/providers/ipa/ipa_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |