From fdda4b659fa3be3027df91a2b053835186ec2c59 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 24 Oct 2013 11:45:57 +0200 Subject: 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. --- src/providers/ldap/sdap_async_users.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/providers/ldap/sdap_async_users.c') diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c index 860e8feaf..2807b0728 100644 --- a/src/providers/ldap/sdap_async_users.c +++ b/src/providers/ldap/sdap_async_users.c @@ -215,6 +215,7 @@ int sdap_save_user(TALLOC_CTX *memctx, use_id_mapping = sdap_idmap_domain_has_algorithmic_mapping(opts->idmap_ctx, + dom->name, sid_str); /* Retrieve or map the UID as appropriate */ -- cgit