summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-11 03:25:31 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-11 03:25:31 +0000
commitf9d66d10c236558c20a28f4caae3c6b4e2516fa9 (patch)
treeab004bb2f9ac59e14e43b8ac970f91b9159a8261 /source3/nsswitch/pam_winbind.c
parent674c750df7f3725d460631c3200f284767bbb6cf (diff)
downloadsamba-f9d66d10c236558c20a28f4caae3c6b4e2516fa9.tar.gz
samba-f9d66d10c236558c20a28f4caae3c6b4e2516fa9.tar.bz2
samba-f9d66d10c236558c20a28f4caae3c6b4e2516fa9.zip
Return the 'freindly' NT error message if at all possible.
Andrew Bartlett (This used to be commit 90d05176534cfd97ed3827bddfeb3a0cb7f22683)
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r--source3/nsswitch/pam_winbind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 7d0353664f..123f670366 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -121,7 +121,8 @@ static int pam_winbind_request(enum winbindd_cmd req_type,
/* Copy reply data from socket */
if (response->result != WINBINDD_OK) {
if (response->data.auth.pam_error != PAM_SUCCESS) {
- _pam_log(LOG_ERR, "request failed, PAM error was %d, NT error was %s",
+ _pam_log(LOG_ERR, "request failed: %s, PAM error was %d, NT error was %s",
+ response->data.auth.error_string,
response->data.auth.pam_error,
response->data.auth.nt_status_string);
return response->data.auth.pam_error;