summaryrefslogtreecommitdiffstats
path: root/source3/utils/ntlm_auth.c
diff options
context:
space:
mode:
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>2015-01-23 23:58:53 +0000
committerJeremy Allison <jra@samba.org>2015-03-10 00:50:09 +0100
commit83cfb84b78ce7141652f1fdc7f01978cdb69343f (patch)
treeb5ff07c27602c263710a1b128616459832ab5e55 /source3/utils/ntlm_auth.c
parent60c7571984d7f1612828a72fae3ed8e66037d1f7 (diff)
downloadsamba-83cfb84b78ce7141652f1fdc7f01978cdb69343f.tar.gz
samba-83cfb84b78ce7141652f1fdc7f01978cdb69343f.tar.xz
samba-83cfb84b78ce7141652f1fdc7f01978cdb69343f.zip
Use global context for winbindd_request_response
Updating API call in libwbclient, wbinfo, ntlm_auth and winbind_nss_* as per previous commit to wb_common.c. Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils/ntlm_auth.c')
-rw-r--r--source3/utils/ntlm_auth.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 4df4e3e927..c49543953e 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -269,7 +269,7 @@ static char winbind_separator(void)
/* Send off request */
- if (winbindd_request_response(WINBINDD_INFO, NULL, &response) !=
+ if (winbindd_request_response(NULL, WINBINDD_INFO, NULL, &response) !=
NSS_STATUS_SUCCESS) {
d_printf("could not obtain winbind separator!\n");
return *lp_winbind_separator();
@@ -299,7 +299,7 @@ const char *get_winbind_domain(void)
/* Send off request */
- if (winbindd_request_response(WINBINDD_DOMAIN_NAME, NULL, &response) !=
+ if (winbindd_request_response(NULL, WINBINDD_DOMAIN_NAME, NULL, &response) !=
NSS_STATUS_SUCCESS) {
DEBUG(1, ("could not obtain winbind domain name!\n"));
return lp_workgroup();
@@ -325,7 +325,7 @@ const char *get_winbind_netbios_name(void)
/* Send off request */
- if (winbindd_request_response(WINBINDD_NETBIOS_NAME, NULL, &response) !=
+ if (winbindd_request_response(NULL, WINBINDD_NETBIOS_NAME, NULL, &response) !=
NSS_STATUS_SUCCESS) {
DEBUG(1, ("could not obtain winbind netbios name!\n"));
return lp_netbios_name();
@@ -393,7 +393,7 @@ static bool get_require_membership_sid(void) {
return False;
}
- if (winbindd_request_response(WINBINDD_LOOKUPNAME, &request, &response) !=
+ if (winbindd_request_response(NULL, WINBINDD_LOOKUPNAME, &request, &response) !=
NSS_STATUS_SUCCESS) {
DEBUG(0, ("Winbindd lookupname failed to resolve %s into a SID!\n",
require_membership_of));
@@ -463,7 +463,7 @@ static bool check_plaintext_auth(const char *user, const char *pass,
sizeof(request.data.auth.require_membership_of_sid));
}
- result = winbindd_request_response(WINBINDD_PAM_AUTH, &request, &response);
+ result = winbindd_request_response(NULL, WINBINDD_PAM_AUTH, &request, &response);
/* Display response */
@@ -558,7 +558,7 @@ NTSTATUS contact_winbind_auth_crap(const char *username,
request.data.auth_crap.nt_resp_len = nt_response->length;
}
- result = winbindd_request_response(WINBINDD_PAM_AUTH_CRAP, &request, &response);
+ result = winbindd_request_response(NULL, WINBINDD_PAM_AUTH_CRAP, &request, &response);
SAFE_FREE(request.extra_data.data);
/* Display response */
@@ -653,7 +653,7 @@ static NTSTATUS contact_winbind_change_pswd_auth_crap(const char *username,
request.data.chng_pswd_auth_crap.old_lm_hash_enc_len = old_lm_hash_enc.length;
}
- result = winbindd_request_response(WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP, &request, &response);
+ result = winbindd_request_response(NULL, WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP, &request, &response);
/* Display response */
@@ -1194,7 +1194,7 @@ static NTSTATUS do_ccache_ntlm_auth(DATA_BLOB initial_msg, DATA_BLOB challenge_m
challenge_msg.data, challenge_msg.length);
}
- result = winbindd_request_response(WINBINDD_CCACHE_NTLMAUTH, &wb_request, &wb_response);
+ result = winbindd_request_response(NULL, WINBINDD_CCACHE_NTLMAUTH, &wb_request, &wb_response);
SAFE_FREE(wb_request.extra_data.data);
if (result != NSS_STATUS_SUCCESS) {