summaryrefslogtreecommitdiffstats
path: root/src/tools/sss_seed.c
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2012-11-08 14:34:36 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-19 14:02:19 +0100
commit6642637ef37258686c34f5b630d5fcba99bea3ee (patch)
tree139b6995e469e9d09c2a4f0618ff0f8172d52a7c /src/tools/sss_seed.c
parent05bfd452f037a60c87a25e04da51ed7bd02d6d97 (diff)
downloadsssd-6642637ef37258686c34f5b630d5fcba99bea3ee.tar.gz
sssd-6642637ef37258686c34f5b630d5fcba99bea3ee.tar.xz
sssd-6642637ef37258686c34f5b630d5fcba99bea3ee.zip
Display more information on DB version crash
https://fedorahosted.org/sssd/ticket/1589 Added check for determining, whether database version is higher or lower than expected. To distinguish it from other errors it uses following retun values (further used for appropriate error message): EMEDIUMTYPE for lower version than expected EUCLEAN for higher version than expected When SSSD or one of it's tools fails on DB version mismatch, new error message is showed suggesting how to proceed.
Diffstat (limited to 'src/tools/sss_seed.c')
-rw-r--r--src/tools/sss_seed.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/sss_seed.c b/src/tools/sss_seed.c
index 18d0b9d08..8eaf95936 100644
--- a/src/tools/sss_seed.c
+++ b/src/tools/sss_seed.c
@@ -631,6 +631,7 @@ static int seed_init_db(TALLOC_CTX *mem_ctx,
ret = sysdb_init_domain_and_sysdb(tmp_ctx, confdb, domain_name,
DB_PATH, &domain, &sysdb);
if (ret != EOK) {
+ SYSDB_VERSION_ERROR(ret);
DEBUG(SSSDBG_CRIT_FAILURE,
("Could not initialize connection to domain '%s' in sysdb.%s\n",
domain_name, ret == ENOENT ? " Domain not found." : ""));