summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-18 06:42:50 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-18 06:42:50 +0000
commit3346a76674fc59ba8e1adb382d2fe477eddf1e96 (patch)
tree49496b451f48f2dffc1a0164360558ec1ddb5cbb /source3/nsswitch/winbindd_misc.c
parent58e1fe62cc955c6b8449332447a6879c6fab64e7 (diff)
downloadsamba-3346a76674fc59ba8e1adb382d2fe477eddf1e96.tar.gz
samba-3346a76674fc59ba8e1adb382d2fe477eddf1e96.tar.xz
samba-3346a76674fc59ba8e1adb382d2fe477eddf1e96.zip
As per rsharpe's request, require only a Masters in Astrophysics to
correctly configure winbind. (Next job: Fill in the 'error_msg' field with somthing useful) (This used to be commit 49ee2a25c131641887cbc438a6336652f042cfb0)
Diffstat (limited to 'source3/nsswitch/winbindd_misc.c')
-rw-r--r--source3/nsswitch/winbindd_misc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 5678bdaa5a..f465f783b4 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -88,9 +88,15 @@ enum winbindd_result winbindd_check_machine_acct(struct winbindd_cli_state *stat
"good" : "bad"));
done:
- state->response.data.num_entries = NT_STATUS_V(result);
+ 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);
- return WINBINDD_OK;
+ DEBUG(NT_STATUS_IS_OK(result) ? 5 : 2, ("Checking the trust account password returned %s\n",
+ state->response.data.auth.nt_status_string));
+
+ return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR;
}
enum winbindd_result winbindd_list_trusted_domains(struct winbindd_cli_state