Re: BUG #9337: SSPI/GSSAPI with mismatched user names

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: brian(at)fluggo(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #9337: SSPI/GSSAPI with mismatched user names
Date: 2014-02-24 18:44:55
Message-ID: 5500.1393267495@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

brian(at)fluggo(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Brian Crowell 2014-02-24 18:50:20 Re: BUG #9337: SSPI/GSSAPI with mismatched user names
Previous Message brian 2014-02-24 18:34:40 BUG #9337: SSPI/GSSAPI with mismatched user names