diff options
author | Günther Deschner <gd@samba.org> | 2008-08-25 13:03:15 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-08-25 15:01:12 +0200 |
commit | dd1357cb2ab3957da4be1c7429b604b7d68840a2 (patch) | |
tree | f73e73f6e8612c7086a76954aaacbd3df7d27f2f | |
parent | f6b5a6e819e8f2b21aebe1eedddfac8b03a5ee4a (diff) | |
download | samba-dd1357cb2ab3957da4be1c7429b604b7d68840a2.tar.gz samba-dd1357cb2ab3957da4be1c7429b604b7d68840a2.tar.xz samba-dd1357cb2ab3957da4be1c7429b604b7d68840a2.zip |
winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.
Guenther
(cherry picked from commit bb9c59e892cc9d3047bde89a15cc341e2bd21bc5)
(cherry picked from commit fba93f94761203163b3e3811fc3fcbeec576d30b)
-rw-r--r-- | source/winbindd/winbindd_misc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/winbindd/winbindd_misc.c b/source/winbindd/winbindd_misc.c index 01a4054d442..50936c01a33 100644 --- a/source/winbindd/winbindd_misc.c +++ b/source/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)); |