summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-18 19:51:45 +0200
committerVolker Lendecke <vl@samba.org>2010-08-27 12:53:17 +0200
commit8e1d3b5f8fe4b5bbb61a357e9db62adad7d767f1 (patch)
tree937c34fe7b5ff30f251537c5f0c49fcc8aa97be6 /source3/auth
parent6bcab329e7d5d3c6a6f02f3ebdfe397bc18bb521 (diff)
downloadsamba-8e1d3b5f8fe4b5bbb61a357e9db62adad7d767f1.tar.gz
samba-8e1d3b5f8fe4b5bbb61a357e9db62adad7d767f1.tar.bz2
samba-8e1d3b5f8fe4b5bbb61a357e9db62adad7d767f1.zip
s3: Pass rhost through to smb_pam_passchange
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/pampass.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index 6f8be1a38d..9d5b9f56be 100644
--- a/source3/auth/pampass.c
+++ b/source3/auth/pampass.c
@@ -863,7 +863,8 @@ NTSTATUS smb_pam_passcheck(const char * user, const char * password)
* PAM Password Change Suite
*/
-bool smb_pam_passchange(const char * user, const char * oldpassword, const char * newpassword)
+bool smb_pam_passchange(const char *user, const char *rhost,
+ const char *oldpassword, const char *newpassword)
{
/* Appropriate quantities of root should be obtained BEFORE calling this function */
struct pam_conv *pconv = NULL;
@@ -872,7 +873,7 @@ bool smb_pam_passchange(const char * user, const char * oldpassword, const char
if ((pconv = smb_setup_pam_conv(smb_pam_passchange_conv, user, oldpassword, newpassword)) == NULL)
return False;
- if(!smb_pam_start(&pamh, user, NULL, pconv))
+ if(!smb_pam_start(&pamh, user, rhost, pconv))
return False;
if (!smb_pam_chauthtok(pamh, user)) {