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/pampass.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/pampass.c')
-rw-r--r-- | source3/auth/pampass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index 50bfec1a0c..69a746747a 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -773,7 +773,7 @@ bool smb_pam_close_session(char *user, char *tty, char *rhost) * PAM Externally accessible Account handler */ -NTSTATUS smb_pam_accountcheck(const char * user) +NTSTATUS smb_pam_accountcheck(const char *user, const char *rhost) { NTSTATUS nt_status = NT_STATUS_ACCOUNT_DISABLED; pam_handle_t *pamh = NULL; @@ -787,7 +787,7 @@ NTSTATUS smb_pam_accountcheck(const char * user) if ((pconv = smb_setup_pam_conv(smb_pam_conv, user, NULL, NULL)) == NULL) return NT_STATUS_NO_MEMORY; - if (!smb_pam_start(&pamh, user, NULL, pconv)) + if (!smb_pam_start(&pamh, user, rhost, pconv)) return NT_STATUS_ACCOUNT_DISABLED; if (!NT_STATUS_IS_OK(nt_status = smb_pam_account(pamh, user))) @@ -869,7 +869,7 @@ bool smb_pam_passchange(const char * user, const char * oldpassword, const char #else /* If PAM not used, no PAM restrictions on accounts. */ -NTSTATUS smb_pam_accountcheck(const char * user) +NTSTATUS smb_pam_accountcheck(const char *user, const char *rhost) { return NT_STATUS_OK; } |