summaryrefslogtreecommitdiffstats
path: root/source3/winbindd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-25 13:03:15 +0200
committerGünther Deschner <gd@samba.org>2008-08-25 13:18:02 +0200
commite682f09da5dccd531dd908b62f1902a555bfc772 (patch)
tree2ebf783b7af99e9507ffc61b8bdaf0086fac9653 /source3/winbindd
parent66fa77ba9ed50b114131b0c071dbe1fcb658b755 (diff)
downloadsamba-e682f09da5dccd531dd908b62f1902a555bfc772.tar.gz
samba-e682f09da5dccd531dd908b62f1902a555bfc772.tar.xz
samba-e682f09da5dccd531dd908b62f1902a555bfc772.zip
winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.
Guenther (This used to be commit bb9c59e892cc9d3047bde89a15cc341e2bd21bc5)
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_misc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c
index 01a4054d44..50936c01a3 100644
--- a/source3/winbindd/winbindd_misc.c
+++ b/source3/winbindd/winbindd_misc.c
@@ -86,10 +86,7 @@ enum winbindd_result winbindd_dual_check_machine_acct(struct winbindd_domain *do
"good" : "bad"));
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));
- state->response.data.auth.pam_error = nt_status_to_pam(result);
+ set_auth_errors(&state->response, result);
DEBUG(NT_STATUS_IS_OK(result) ? 5 : 2, ("Checking the trust account password returned %s\n",
state->response.data.auth.nt_status_string));