diff options
author | Volker Lendecke <vl@samba.org> | 2017-07-15 10:52:17 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-11-18 00:09:16 +0100 |
commit | 5781cefc427b3f9f89b4470c1504ab941fa5334e (patch) | |
tree | b40c7274ecbd47c3c52443456e605979b093b4c2 /source3 | |
parent | 87c443256223a91192b8ea3db94fbd40557be881 (diff) | |
download | samba-5781cefc427b3f9f89b4470c1504ab941fa5334e.tar.gz |
ntlm_auth: Use libwbclient in winbind_separator()
Avoid direct winbindd_request_response()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/ntlm_auth.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 5a10e27719f..faba67c3b29 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -280,24 +280,24 @@ static void gensec_want_feature_list(struct gensec_security *state, char* featur static char winbind_separator(void) { - struct winbindd_response response; + struct wbcInterfaceDetails *details; + wbcErr ret; static bool got_sep; static char sep; if (got_sep) return sep; - ZERO_STRUCT(response); - - /* Send off request */ - - if (winbindd_request_response(NULL, WINBINDD_INFO, NULL, &response) != - NSS_STATUS_SUCCESS) { + ret = wbcInterfaceDetails(&details); + if (!WBC_ERROR_IS_OK(ret)) { d_fprintf(stderr, "could not obtain winbind separator!\n"); return *lp_winbind_separator(); } - sep = response.data.info.winbind_separator; + sep = details->winbind_separator; + + wbcFreeMemory(details); + got_sep = True; if (!sep) { |