diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-18 18:23:49 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-22 22:42:21 +0200 |
commit | 177e394f93278407557702d9f53bae65fd5fc434 (patch) | |
tree | 86e740e30d4bfb10adeae52a78b9bd0002ada984 /source3/auth/auth.c | |
parent | 265f0b7745b811d6ba1575eb277213f707215a3b (diff) | |
download | samba-177e394f93278407557702d9f53bae65fd5fc434.tar.gz samba-177e394f93278407557702d9f53bae65fd5fc434.tar.bz2 samba-177e394f93278407557702d9f53bae65fd5fc434.zip |
s3: Pass the rhost through smb_pam_accountcheck
Diffstat (limited to 'source3/auth/auth.c')
-rw-r--r-- | source3/auth/auth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c index d92d327721..cabff53180 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -18,6 +18,7 @@ */ #include "includes.h" +#include "smbd/globals.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_AUTH @@ -284,7 +285,9 @@ static NTSTATUS check_ntlm_password(const struct auth_context *auth_context, if (!(*server_info)->guest) { /* We might not be root if we are an RPC call */ become_root(); - nt_status = smb_pam_accountcheck(unix_username); + nt_status = smb_pam_accountcheck( + unix_username, + smbd_server_conn->client_id.name); unbecome_root(); if (NT_STATUS_IS_OK(nt_status)) { |