pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kaiting Chen <kaitocracy@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5763: pg_hba.conf not honored
Date: Tue, 23 Nov 2010 10:29:43 -0500
Message-ID: <8761.1290526183@sss.pgh.pa.us> (raw)
In-Reply-To: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org>
References: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org>

"Kaiting Chen" <kaitocracy@gmail.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <8761.1290526183@sss.pgh.pa.us>
Permalink:  ../8761.1290526183@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8761.1290526183@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kaitocracy@gmail.com
  Subject: Re: BUG #5763: pg_hba.conf not honored
  In-Reply-To: <8761.1290526183@sss.pgh.pa.us>
  References: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org> <8761.1290526183@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox