diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-05-18 06:42:50 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-05-18 06:42:50 +0000 |
commit | 3346a76674fc59ba8e1adb382d2fe477eddf1e96 (patch) | |
tree | 49496b451f48f2dffc1a0164360558ec1ddb5cbb /source3/nsswitch/wbinfo.c | |
parent | 58e1fe62cc955c6b8449332447a6879c6fab64e7 (diff) | |
download | samba-3346a76674fc59ba8e1adb382d2fe477eddf1e96.tar.gz samba-3346a76674fc59ba8e1adb382d2fe477eddf1e96.tar.bz2 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/wbinfo.c')
-rw-r--r-- | source3/nsswitch/wbinfo.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index e36a144b8f..38cc049297 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -248,25 +248,21 @@ static BOOL wbinfo_show_sequence(void) static BOOL wbinfo_check_secret(void) { struct winbindd_response response; - BOOL result; + NSS_STATUS result; ZERO_STRUCT(response); result = winbindd_request(WINBINDD_CHECK_MACHACC, NULL, &response) == NSS_STATUS_SUCCESS; - - if (result) { - - if (response.data.num_entries == 0) - d_printf("Secret is good\n"); - else - d_printf("Secret is bad\n0x%08x\n", - response.data.num_entries); - - return True; - } - - return False; + + d_printf("checking the trust secret via RPC calls %s\n", + (result == NSS_STATUS_SUCCESS) ? "succeeded" : "failed"); + + d_printf("error code was %s (0x%x)\n", + response.data.auth.nt_status_string, + response.data.auth.nt_status); + + return result == NSS_STATUS_SUCCESS; } /* Convert uid to sid */ |