Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 04C439FB5CD for ; Wed, 2 May 2007 18:42:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53438-03 for ; Wed, 2 May 2007 18:42:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E5FA39FB1F4 for ; Wed, 2 May 2007 18:42:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l42LgcnO021651; Wed, 2 May 2007 17:42:38 -0400 (EDT) To: Rob Cherry cc: pgsql-admin@postgresql.org Subject: Re: Multiple auth types for a connection In-reply-to: <1178137371.17100.6.camel@sphere.lxrb.com> References: <1178137371.17100.6.camel@sphere.lxrb.com> Comments: In-reply-to Rob Cherry message dated "Wed, 02 May 2007 16:22:51 -0400" Date: Wed, 02 May 2007 17:42:38 -0400 Message-ID: <21650.1178142158@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/29 X-Sequence-Number: 25349 Rob Cherry writes: > Does anyone know if it is possible to overload auth types like this such > that if pam fails password would be tried? No, it's not, as per the Fine Manual: : The first record with a matching connection type, client address, : requested database, and user name is used to perform : authentication. There is no "fall-through" or "backup": if one record is : chosen and the authentication fails, subsequent records are not : considered. If no record matches, access is denied. Your best bet is probably to list the automated users specifically in a record that specifies password, and then put another record that selects pam for everyone else. regards, tom lane