summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_subdomains.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-10-24 11:45:57 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-25 15:31:15 +0200
commitfdda4b659fa3be3027df91a2b053835186ec2c59 (patch)
treef5f579b9d36f38df405db0f8b3552e2b4d85d21b /src/providers/ipa/ipa_subdomains.c
parent3cbbfb4b05d0eb0a0809704e83589d0075e117a0 (diff)
downloadsssd-fdda4b659fa3be3027df91a2b053835186ec2c59.tar.gz
sssd-fdda4b659fa3be3027df91a2b053835186ec2c59.tar.xz
sssd-fdda4b659fa3be3027df91a2b053835186ec2c59.zip
sdap_idmap_domain_has_algorithmic_mapping: add domain name argument
When libss_idmap was only used to algorithmically map a SID to a POSIX ID a domain SID was strictly necessary and the only information needed to find a domain. With the introduction of external mappings there are cases where a domain SID is not available. Currently we relied on the fact that external mapping was always used as a default if not specific information about the domain was found. The lead to extra CPU cycles and potentially confusing debug messages. Adding the domain name as a search parameter will avoid this.
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.c')
-rw-r--r--src/providers/ipa/ipa_subdomains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 49ac0b3e7..d873c5b27 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -577,7 +577,7 @@ static errno_t ipa_subdom_store(struct sss_domain_info *parent,
goto done;
}
- mpg = sdap_idmap_domain_has_algorithmic_mapping(sdap_idmap_ctx, id);
+ mpg = sdap_idmap_domain_has_algorithmic_mapping(sdap_idmap_ctx, name, id);
ret = ipa_subdom_get_forest(tmp_ctx, sysdb_ctx_get_ldb(parent->sysdb),
attrs, &forest);