summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_subdomains.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-04-22 10:43:44 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-04-29 12:15:20 +0200
commitb1829e54acbc8a010aca7f14b9ffa9625f8c102c (patch)
tree7b32d5eb054c486ac89c86a1ab59fdd1a646b8f6 /src/providers/ipa/ipa_subdomains.c
parentc7a4383b3b5549d0627c21bb02bd5f0bd46a3531 (diff)
downloadsssd-b1829e54acbc8a010aca7f14b9ffa9625f8c102c.tar.gz
sssd-b1829e54acbc8a010aca7f14b9ffa9625f8c102c.tar.bz2
sssd-b1829e54acbc8a010aca7f14b9ffa9625f8c102c.zip
Make IPA SELinux provider aware of subdomain users
Fixes https://fedorahosted.org/sssd/ticket/1892
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.c')
-rw-r--r--src/providers/ipa/ipa_subdomains.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 529618bc..98fc69f1 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -79,6 +79,20 @@ struct ipa_subdomains_ctx {
time_t disabled_until;
};
+struct be_ctx *ipa_get_subdomains_be_ctx(struct be_ctx *be_ctx)
+{
+ struct ipa_subdomains_ctx *subdom_ctx;
+
+ subdom_ctx = talloc_get_type(be_ctx->bet_info[BET_SUBDOMAINS].pvt_bet_data,
+ struct ipa_subdomains_ctx);
+ if (subdom_ctx == NULL) {
+ DEBUG(SSSDBG_TRACE_ALL, ("Subdomains are not configured.\n"));
+ return NULL;
+ }
+
+ return subdom_ctx->be_ctx;
+}
+
const char *get_flat_name_from_subdomain_name(struct be_ctx *be_ctx,
const char *name)
{