summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-11-20 13:39:09 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-11-24 21:19:06 +0100
commite0d2777620726f3f9f1f0eee911c5a9c66488443 (patch)
tree8feff390a19cafe35a0966486d5ae42733357b8f
parent1b2a9e3f17e54bcbe5c9bee82a91ae694b7ea0eb (diff)
downloadsssd-e0d2777620726f3f9f1f0eee911c5a9c66488443.zip
sssd-e0d2777620726f3f9f1f0eee911c5a9c66488443.tar.gz
sssd-e0d2777620726f3f9f1f0eee911c5a9c66488443.tar.xz
Hint about removing sysdb if initializing ID map fails
https://fedorahosted.org/sssd/ticket/2477 Reviewed-by: Pavel Reichl <preichl@redhat.com>
-rw-r--r--src/providers/ipa/ipa_init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c
index 45abd0e..160d15c 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) {