From ba706d696b8fb14b8d449cd198d982eef18e4320 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 18 Aug 2010 18:16:24 +0200 Subject: s3: Remove smb_pam_accountcheck from the auth modules We go through the same check in auth/auth.c line 287 after the module has done its job. So we don't have to do that check twice. --- source3/auth/auth_unix.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source3/auth/auth_unix.c') diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c index 8668a2f5794..c50ac78ee4c 100644 --- a/source3/auth/auth_unix.c +++ b/source3/auth/auth_unix.c @@ -54,14 +54,7 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context, if (NT_STATUS_IS_OK(nt_status)) { if (pass) { - /* if a real user check pam account restrictions */ - /* only really perfomed if "obey pam restriction" is true */ - nt_status = smb_pam_accountcheck(pass->pw_name); - if ( !NT_STATUS_IS_OK(nt_status)) { - DEBUG(1, ("PAM account restriction prevents user login\n")); - } else { - make_server_info_pw(server_info, pass->pw_name, pass); - } + make_server_info_pw(server_info, pass->pw_name, pass); } else { /* we need to do somthing more useful here */ nt_status = NT_STATUS_NO_SUCH_USER; -- cgit v1.2.1