summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-11-22 13:33:44 +0000
committerGünther Deschner <gd@samba.org>2005-11-22 13:33:44 +0000
commit568f505caf3d615b9066e4b118ee55513698d83e (patch)
treedb1012046dfe3e5fb8231a0c7fda5f56acc844b8 /source
parent27b4246f0af43d79400e7e7abf720ffc07edcc8a (diff)
downloadsamba-568f505caf3d615b9066e4b118ee55513698d83e.tar.gz
samba-568f505caf3d615b9066e4b118ee55513698d83e.tar.xz
samba-568f505caf3d615b9066e4b118ee55513698d83e.zip
r11851: Display correct error string.
Guenther
Diffstat (limited to 'source')
-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 4582eced0e5..e683f397b66 100644
--- a/source/nsswitch/winbindd_pam.c
+++ b/source/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,