summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-14 20:56:47 +0200
committerKarolin Seeger <kseeger@samba.org>2008-08-22 09:21:32 +0200
commit2a69f0f2b755e29c758245942987587928b24831 (patch)
treeb7f044e23ca00a1b36bbb8cde6c81fd73d095617 /source/nsswitch
parent10f5ec8b7f1fa43d5dc99988678d4a560498c411 (diff)
downloadsamba-2a69f0f2b755e29c758245942987587928b24831.tar.gz
samba-2a69f0f2b755e29c758245942987587928b24831.tar.xz
samba-2a69f0f2b755e29c758245942987587928b24831.zip
pam_winbind: use pam error string function to display result.
Guenther (cherry picked from commit 8504a92ac55d6936df051be66207a59a76bf32a3) (cherry picked from commit 9d35ad449dd5be133490e131c848184b9b3dd84f)
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/pam_winbind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c
index 872a1b72ea4..7532aeabcde 100644
--- a/source/nsswitch/pam_winbind.c
+++ b/source/nsswitch/pam_winbind.c
@@ -94,7 +94,8 @@ static const char *_pam_error_code_str(int err)
#define _PAM_LOG_FUNCTION_LEAVE(function, ctx, retval) \
do { \
_pam_log_debug(ctx, LOG_DEBUG, "[pamh: %p] LEAVE: " \
- function " returning %d", ctx->pamh, retval); \
+ function " returning %d (%s)", ctx->pamh, retval, \
+ _pam_error_code_str(retval)); \
_pam_log_state(ctx); \
} while (0)