From: Tom Lane <tgl@sss.pgh.pa.us>
To: brian@fluggo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9337: SSPI/GSSAPI with mismatched user names
Date: Mon, 24 Feb 2014 13:44:55 -0500
Message-ID: <5500.1393267495@sss.pgh.pa.us> (raw)
In-Reply-To: <20140224183440.1162.91110@wrigleys.postgresql.org>
References: <20140224183440.1162.91110@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
brian@fluggo.com writes:
> The short version is that Postgres requires two user names when using
> GSSAPI/SSPI: one from the startup packet, and one from the Kerberos ticket,
> and if these don't match exactly, the login fails. It's generally impossible
> to determine the correct user name to send in the startup packet.
> I think Postgres should either not require or ignore the user name in the
> startup packet for these two login types.
If we did that, wouldn't it mean that anyone with a working Kerberos login
could log in as *any* database user? Even a superuser?
I'm prepared to grant that we might need to change the behavior somehow,
but it seems like not requiring any connection at all between the Kerberos
principal name and the database user name would be entirely unsafe.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, brian@fluggo.com
Subject: Re: BUG #9337: SSPI/GSSAPI with mismatched user names
In-Reply-To: <5500.1393267495@sss.pgh.pa.us>
References: <20140224183440.1162.91110@wrigleys.postgresql.org> <5500.1393267495@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