pam_winbind: use pam error string function to display result.
authorGünther Deschner <gd@samba.org>
Thu, 14 Aug 2008 18:56:47 +0000 (20:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Aug 2008 07:21:32 +0000 (09:21 +0200)
Guenther
(cherry picked from commit 8504a92ac55d6936df051be66207a59a76bf32a3)
(cherry picked from commit 9d35ad449dd5be133490e131c848184b9b3dd84f)

source/nsswitch/pam_winbind.c

index 872a1b72ea41ef71c775e61a27cdcbb756480e40..7532aeabcde0d75a46d5b7f0cdfa4018a8fb1cec 100644 (file)
@@ -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)