summaryrefslogtreecommitdiff
path: root/src/responder/common
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 13:35:55 +0100
commit4c9a85ab708ec7debecad51e4240e04d8bc6ca4e (patch)
treebcc2ac0722065b8832bd4073479ba08792888956 /src/responder/common
parentc475ce7bfa230a0a0167a294317c1120211cbb4c (diff)
downloadsssd-4c9a85ab708ec7debecad51e4240e04d8bc6ca4e.tar.gz
sssd-4c9a85ab708ec7debecad51e4240e04d8bc6ca4e.tar.bz2
sssd-4c9a85ab708ec7debecad51e4240e04d8bc6ca4e.zip
Display more information on DB version mismatch
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/responder/common')
-rw-r--r--src/responder/common/responder_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c
index d9f73fe2..50705a3f 100644
--- a/src/responder/common/responder_common.c
+++ b/src/responder/common/responder_common.c
@@ -839,6 +839,7 @@ int sss_process_init(TALLOC_CTX *mem_ctx,
ret = sysdb_init(rctx, cdb, NULL, false, &rctx->db_list);
if (ret != EOK) {
+ SYSDB_VERSION_ERROR_DAEMON(ret);
DEBUG(0, ("fatal error initializing resp_ctx\n"));
return ret;
}