>From f80bfdc371c3349ee96c87fc291e060fcbcf4f5a Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 15 Jan 2014 14:55:10 +0100 Subject: [PATCH 2/2] LDAP: update id mapping detection for ldap provider For id_provider ldap, it is only necessary to enable option ldap_id_mapping. It is an regression introduced in the commit d3e1d88ce7de3216a862b Resolves: https://fedorahosted.org/sssd/ticket/2172 --- src/providers/ldap/sdap_idmap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c index 871b8e0bf2357b1dde3f179bb6dba3d5e7537413..eed0b02b8e3096d4ac817f8f26f4904b8f4578c7 100644 --- a/src/providers/ldap/sdap_idmap.c +++ b/src/providers/ldap/sdap_idmap.c @@ -520,6 +520,11 @@ bool sdap_idmap_domain_has_algorithmic_mapping(struct sdap_idmap_ctx *ctx, int ret; TALLOC_CTX *tmp_ctx = NULL; + if (dp_opt_get_bool(ctx->id_ctx->opts->basic, SDAP_ID_MAPPING) + && 0 == strcmp("ldap", ctx->id_ctx->be->bet_info[BET_ID].mod_name)) { + return true; + } + err = sss_idmap_domain_has_algorithmic_mapping(ctx->map, dom_sid, &has_algorithmic_mapping); if (err == IDMAP_SUCCESS) { -- 1.8.4.2