summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-07-20 14:13:19 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-07-20 20:32:09 +0200
commitff0b0caaaceb3060b8024bc76f51cca5681bd995 (patch)
treedc3ea8d68eabf8054c1571a8bad6889808f9484b /src
parent21b3c8aff20d1987add2a93561653a3d6a9685d4 (diff)
downloadsssd-ff0b0caaaceb3060b8024bc76f51cca5681bd995.tar.gz
sssd-ff0b0caaaceb3060b8024bc76f51cca5681bd995.tar.xz
sssd-ff0b0caaaceb3060b8024bc76f51cca5681bd995.zip
SYSDB: Add log message for unexpected LDB errors
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 7f7310a2c..3ef8444cd 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -737,6 +737,9 @@ int sysdb_error_to_errno(int ldberr)
case LDB_ERR_ENTRY_ALREADY_EXISTS:
return EEXIST;
default:
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("LDB returned unexpected error: [%s]\n",
+ ldb_strerror(ldberr)));
return EFAULT;
}
}