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_server.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source3/auth/auth_server.c') diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index b5954e6a4df..4ce0336ccc5 100644 --- a/source3/auth/auth_server.c +++ b/source3/auth/auth_server.c @@ -435,15 +435,7 @@ use this machine as the password server.\n")); if ( (pass = smb_getpwnam( NULL, user_info->mapped.account_name, real_username, True )) != NULL ) { - /* 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 { - - nt_status = make_server_info_pw(server_info, pass->pw_name, pass); - } + nt_status = make_server_info_pw(server_info, pass->pw_name, pass); TALLOC_FREE(pass); } else -- cgit