summaryrefslogtreecommitdiffstats
path: root/src/providers/ad
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-04-28 13:48:42 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-05 16:39:37 +0200
commit9b162bf39ef75629f54ffa1d0bd5f9c13119b650 (patch)
tree4d876a9d4d03c16438708e6c605872f1db40f352 /src/providers/ad
parent01c049ceef55c7bbfca1e47cecb2a0a2cf0a5d44 (diff)
downloadsssd-9b162bf39ef75629f54ffa1d0bd5f9c13119b650.tar.gz
sssd-9b162bf39ef75629f54ffa1d0bd5f9c13119b650.tar.xz
sssd-9b162bf39ef75629f54ffa1d0bd5f9c13119b650.zip
subdomains: Inherit cleanup period and tokengroup settings from parent domain
Allows the administrator to extend the functionality of ldap_purge_cache_timeout, ldap_user_principal and ldap_use_tokengroups to the subdomains. This is a less intrusive way of achieving: https://fedorahosted.org/sssd/ticket/2627 Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/providers/ad')
-rw-r--r--src/providers/ad/ad_subdomains.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
index 5a6e9338d..71c01b9d7 100644
--- a/src/providers/ad/ad_subdomains.c
+++ b/src/providers/ad/ad_subdomains.c
@@ -183,6 +183,10 @@ ad_subdom_ad_ctx_new(struct be_ctx *be_ctx,
return EFAULT;
}
+ sdap_inherit_options(subdom->parent->sd_inherit,
+ id_ctx->sdap_id_ctx->opts,
+ ad_id_ctx->sdap_id_ctx->opts);
+
/* Set up the ID mapping object */
ad_id_ctx->sdap_id_ctx->opts->idmap_ctx =
id_ctx->sdap_id_ctx->opts->idmap_ctx;