Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 86890475BB3 for ; Wed, 6 Mar 2002 11:27:21 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g26GRCS23122; Wed, 6 Mar 2002 11:27:12 -0500 (EST) To: Dmitry Morozovsky Cc: pgsql-admin@postgresql.org Subject: Re: Authentication problem In-reply-to: <20020306161647.U67935-100000@woozle.rinet.ru> References: <20020306161647.U67935-100000@woozle.rinet.ru> Comments: In-reply-to Dmitry Morozovsky message dated "Wed, 06 Mar 2002 16:23:33 +0300" Date: Wed, 06 Mar 2002 11:27:12 -0500 Message-ID: <23119.1015432032@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200203/67 X-Sequence-Number: 3602 Dmitry Morozovsky writes: > There is no "fall-through" or "backup": if one record is chosen > and the authentication fails, the following records are not > considered. > Are there any plans to loose this restriction? No. I don't believe we could count on clients to respond to multiple authentication challenges of different types. > It would be very useful to use e.g. > local all ident admin > local sameuser ident sameuser > local all password passwd.user The "sameuser" part of this works now, since sameuser is a record matching constraint, not an authentication test. There has been some talk of adding a more flexible username-matching field to pg_hba (whereupon the file name would be inappropriate ;-)) but no one's really done any work on it. regards, tom lane