From 9bd5a2eb683485e092d64a2fddff047f56fa7836 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 29 Oct 2013 17:06:16 +0100 Subject: [PATCH] ad_subdom_store: check ID mapping of the domain not of the parent --- src/providers/ad/ad_subdomains.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c index 8a3a57b..9911dfe 100644 --- a/src/providers/ad/ad_subdomains.c +++ b/src/providers/ad/ad_subdomains.c @@ -159,8 +159,8 @@ ad_subdom_store(struct ad_subdomains_ctx *ctx, mpg = sdap_idmap_domain_has_algorithmic_mapping( ctx->sdap_id_ctx->opts->idmap_ctx, - domain->name, - domain->domain_id); + name, + sid_str); /* AD subdomains are currently all mpg and do not enumerate */ ret = sysdb_subdomain_store(domain->sysdb, name, realm, flat, sid_str, -- 1.8.3.1