Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C9D2A1337B64 for ; Tue, 23 Nov 2010 11:29:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 96549-10 for ; Tue, 23 Nov 2010 15:29:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6F0411336B42 for ; Tue, 23 Nov 2010 11:29:44 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oANFTh4k008762; Tue, 23 Nov 2010 10:29:43 -0500 (EST) To: "Kaiting Chen" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5763: pg_hba.conf not honored In-reply-to: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org> References: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org> Comments: In-reply-to "Kaiting Chen" message dated "Tue, 23 Nov 2010 08:34:19 +0000" Date: Tue, 23 Nov 2010 10:29:43 -0500 Message-ID: <8761.1290526183@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/147 X-Sequence-Number: 28727 "Kaiting Chen" writes: > From this pg_hba configuration as the user 'kaiting.chen' is not in role > 'service' the second entry in the table should be skipped and he should > authenticate via GSSAPI. However this does not happen. I believe the definition of "in role" we use here is "has the privileges of role". Since kaiting.chen is a superuser, all privilege tests will succeed for him, including that one. IOW, a superuser is automatically a member of every role. This isn't a bug. regards, tom lane