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