summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_groups.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-06-12 15:47:26 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-28 20:20:59 +0200
commitb56b06e199f15a8a840b36bc7cb8010e39ae761d (patch)
tree214e4533ce5b8def6543645279325ee84864380b /src/providers/ldap/sdap_async_groups.c
parentb2c7b6fe7a6b9ef3af8d4d3037fe83d6e9bfd6a5 (diff)
downloadsssd-b56b06e199f15a8a840b36bc7cb8010e39ae761d.tar.gz
sssd-b56b06e199f15a8a840b36bc7cb8010e39ae761d.tar.xz
sssd-b56b06e199f15a8a840b36bc7cb8010e39ae761d.zip
Replace SDAP_ID_MAPPING checks with sdap_idmap_domain_has_algorithmic_mapping
Currently the decision if external or algorithmic mapping should be used in the LDAP or AD provider was based on the value of the ldap_id_mapping config option. Since now all information about ID mapping is handled by libsss_idmap the check for this options can be replace with a call which checks the state via libss_idmap. https://fedorahosted.org/sssd/ticket/1961
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r--src/providers/ldap/sdap_async_groups.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 04ce2f9fb..c3b5914a6 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -435,7 +435,7 @@ static int sdap_save_group(TALLOC_CTX *memctx,
char *usn_value = NULL;
TALLOC_CTX *tmpctx = NULL;
bool posix_group;
- bool use_id_mapping = dp_opt_get_bool(opts->basic, SDAP_ID_MAPPING);
+ bool use_id_mapping;
char *sid_str;
tmpctx = talloc_new(NULL);
@@ -480,6 +480,8 @@ static int sdap_save_group(TALLOC_CTX *memctx,
sid_str = NULL;
}
+ use_id_mapping = sdap_idmap_domain_has_algorithmic_mapping(opts->idmap_ctx,
+ sid_str);
if (use_id_mapping) {
posix_group = true;