summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-01-15 14:55:10 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-01-22 16:48:36 +0100
commit1e4a582e29c119e2c0e58a02dcb41b829e6b5e39 (patch)
tree12e0933bdaff1a8c42fef396cddc22dd067365e7
parent16b27fcceebcbbaeefaf5b9bdf2dec3065adba4a (diff)
downloadsssd-1e4a582e29c119e2c0e58a02dcb41b829e6b5e39.tar.gz
sssd-1e4a582e29c119e2c0e58a02dcb41b829e6b5e39.tar.xz
sssd-1e4a582e29c119e2c0e58a02dcb41b829e6b5e39.zip
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
-rw-r--r--src/providers/ldap/sdap_idmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c
index 871b8e0bf..eed0b02b8 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) {