From 177e394f93278407557702d9f53bae65fd5fc434 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 18 Aug 2010 18:23:49 +0200 Subject: s3: Pass the rhost through smb_pam_accountcheck --- source3/smbd/sesssetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/sesssetup.c') diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index a476ed42ae..9ff5d55133 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -427,7 +427,7 @@ static void reply_spnego_kerberos(struct smb_request *req, /* if a real user check pam account restrictions */ /* only really perfomed if "obey pam restriction" is true */ /* do this before an eventual mapping to guest occurs */ - ret = smb_pam_accountcheck(pw->pw_name); + ret = smb_pam_accountcheck(pw->pw_name, sconn->client_id.name); if ( !NT_STATUS_IS_OK(ret)) { DEBUG(1,("PAM account restriction " "prevents user login\n")); -- cgit