[SSSD] [PATCH] Hint about removing sysdb if initializing ID map fails

Jakub Hrozek jhrozek at redhat.com
Thu Nov 20 12:41:09 UTC 2014


Hi,

if there are other places that would benefit from the same debug
message, please let me know...but I think IPA with the external mapping
is the best candidate.
-------------- next part --------------
>From f3c863cca5263c38a33bde3322882e612cf1bf4e Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Thu, 20 Nov 2014 13:39:09 +0100
Subject: [PATCH] Hint about removing sysdb if initializing ID map fails

https://fedorahosted.org/sssd/ticket/2477
---
 src/providers/ipa/ipa_init.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c
index 45abd0e2ae3d5909e33fd0fca2027a238264b455..c0d457021dbdee4eae4970fec5885900e31230da 100644
--- a/src/providers/ipa/ipa_init.c
+++ b/src/providers/ipa/ipa_init.c
@@ -225,7 +225,13 @@ int sssm_ipa_id_init(struct be_ctx *bectx,
 
     /* Set up the ID mapping object */
     ret = ipa_idmap_init(sdap_ctx, sdap_ctx, &sdap_ctx->opts->idmap_ctx);
-    if (ret != EOK) goto done;
+    if (ret != EOK) {
+        DEBUG(SSSDBG_FATAL_FAILURE,
+              "Could not initialize ID mapping. In case ID mapping properties"
+              "changed on the server, please remove the SSSD database\n");
+        goto done;
+    }
+
 
     ret = ldap_id_setup_tasks(sdap_ctx);
     if (ret != EOK) {
-- 
1.9.3



More information about the sssd-devel mailing list