summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-02-23 11:06:25 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-25 09:16:46 +0100
commitbdc2aced1185c4ee36921fa01b8dc01789a63900 (patch)
tree0a7b6ddb16e31b0c167f695cdde5f90c41db8ede /src/providers
parent889706cbc739358c2a0aac2ba6bc054fdc8e048b (diff)
downloadsssd-bdc2aced1185c4ee36921fa01b8dc01789a63900.tar.gz
sssd-bdc2aced1185c4ee36921fa01b8dc01789a63900.tar.xz
sssd-bdc2aced1185c4ee36921fa01b8dc01789a63900.zip
PAM: print the pam status as string, too
On several places, let's add a pam_strerror() call so that it's easier to debug user problems. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/data_provider_be.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 02749035c..47809e20f 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -536,7 +536,8 @@ static char *dp_pam_err_to_string(TALLOC_CTX *memctx, int dp_err_type, int errnu
{
switch (dp_err_type) {
case DP_ERR_OK:
- return talloc_strdup(memctx, "Success");
+ return talloc_asprintf(memctx, "Success (%s)",
+ pam_strerror(NULL, errnum));
break;
case DP_ERR_OFFLINE: