]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.
authorGünther Deschner <gd@samba.org>
Mon, 25 Aug 2008 11:03:15 +0000 (13:03 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 25 Aug 2008 11:18:02 +0000 (13:18 +0200)
Guenther

source/winbindd/winbindd_misc.c

index 01a4054d4424b781e9512123434694bb44e7601b..50936c01a337916a34d72b71fac65c7e35a197e1 100644 (file)
@@ -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));