From 8e1d3b5f8fe4b5bbb61a357e9db62adad7d767f1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 18 Aug 2010 19:51:45 +0200 Subject: s3: Pass rhost through to smb_pam_passchange --- source3/auth/pampass.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/auth') 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)) { -- cgit