summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-11-22 13:33:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:30 -0500
commitcf974b8d609b28b54854dbf765f9169a904bda49 (patch)
tree435c283353da708a87c5b7f06f87777d8c842d49
parent0e8b90e45db43894253a4f8d45f9ab87e9405622 (diff)
downloadsamba-cf974b8d609b28b54854dbf765f9169a904bda49.tar.gz
samba-cf974b8d609b28b54854dbf765f9169a904bda49.tar.bz2
samba-cf974b8d609b28b54854dbf765f9169a904bda49.zip
r11851: Display correct error string.
Guenther (This used to be commit 4d681f560e59dd483f580c5fe5299af6242ae7c2)
-rw-r--r--source3/nsswitch/winbindd_pam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index 4582eced0e..e683f397b6 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/nsswitch/winbindd_pam.c
@@ -797,7 +797,7 @@ void winbindd_pam_chauthtok(struct winbindd_cli_state *state)
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,