summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_pam.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
commit90d05176534cfd97ed3827bddfeb3a0cb7f22683 (patch)
tree2831f63b4d825f52108b67a641fea2e017725f74 /source/nsswitch/winbindd_pam.c
parent3b2e5f68cd4e1ff07dbd0032f521b3ba6e53746a (diff)
downloadsamba-90d05176534cfd97ed3827bddfeb3a0cb7f22683.tar.gz
samba-90d05176534cfd97ed3827bddfeb3a0cb7f22683.tar.xz
samba-90d05176534cfd97ed3827bddfeb3a0cb7f22683.zip
Return the 'freindly' NT error message if at all possible.
Andrew Bartlett
Diffstat (limited to 'source/nsswitch/winbindd_pam.c')
-rw-r--r--source/nsswitch/winbindd_pam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c
index 398b001f8bf..844c44567bc 100644
--- a/source/nsswitch/winbindd_pam.c
+++ b/source/nsswitch/winbindd_pam.c
@@ -142,7 +142,7 @@ done:
state->response.data.auth.nt_status = NT_STATUS_V(result);
fstrcpy(state->response.data.auth.nt_status_string, nt_errstr(result));
- fstrcpy(state->response.data.auth.error_string, nt_errstr(result));
+ fstrcpy(state->response.data.auth.error_string, get_friendly_nt_error_msg(result));
state->response.data.auth.pam_error = nt_status_to_pam(result);
DEBUG(NT_STATUS_IS_OK(result) ? 5 : 2, ("Plain-text authentication for user %s returned %s (PAM: %d)\n",