summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/auth_domain.c2
-rw-r--r--source/auth/auth_winbind.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source/auth/auth_domain.c b/source/auth/auth_domain.c
index 6468c18cb0e..a32677d0370 100644
--- a/source/auth/auth_domain.c
+++ b/source/auth/auth_domain.c
@@ -237,7 +237,7 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx,
user_info->logon_parameters,/* flags such as 'allow workstation logon' */
dc_name, /* server name */
user_info->smb_name, /* user name logging on. */
- user_info->domain, /* domain name */
+ user_info->client_domain, /* domain name */
user_info->wksta_name, /* workstation name */
chal, /* 8 byte challenge. */
user_info->lm_resp, /* lanman 24 byte response */
diff --git a/source/auth/auth_winbind.c b/source/auth/auth_winbind.c
index fa56757950d..f06f83f4065 100644
--- a/source/auth/auth_winbind.c
+++ b/source/auth/auth_winbind.c
@@ -108,7 +108,8 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
/* we are contacting the privileged pipe */
become_root();
- result = winbindd_request_response(WINBINDD_PAM_AUTH_CRAP, &request, &response);
+ result = winbindd_priv_request_response(WINBINDD_PAM_AUTH_CRAP,
+ &request, &response);
unbecome_root();
if ( result == NSS_STATUS_UNAVAIL ) {