From owner-freebsd-security@FreeBSD.ORG Mon Sep 22 08:07:10 2008 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 155E6106567D for ; Mon, 22 Sep 2008 08:07:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id A06408FC35 for ; Mon, 22 Sep 2008 08:07:09 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id A9282207F; Mon, 22 Sep 2008 09:47:29 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 935C58448F; Mon, 22 Sep 2008 09:47:29 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Ivan Grover" References: <670f29e20809170453o43a2ae37sfd548de1ea7e70be@mail.gmail.com> Date: Mon, 22 Sep 2008 09:47:29 +0200 In-Reply-To: <670f29e20809170453o43a2ae37sfd548de1ea7e70be@mail.gmail.com> (Ivan Grover's message of "Wed, 17 Sep 2008 17:23:06 +0530") Message-ID: <86od2gmxke.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-security@freebsd.org Subject: Re: Controlling PAM modules X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 08:07:10 -0000 "Ivan Grover" writes: > Suppose i dont want to enable locking of users, then one solution i > can think of is to share a common database across application and pam > modules. The application sets the flag which indicates, if pam_able > is included or not. Then pam_abl module will look into this database > and then return simply PAM_SUCCESS always or process the user > lockouts. Put pam_able in a separate policy that you include in the others. Whenever you want to disable it, just comment out the contents of that policy. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no