Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI0Yc-0005w7-1O for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Feb 2014 18:47:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WI0Yb-0005ny-95 for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Feb 2014 18:47:13 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI0WR-0005ib-O4 for pgsql-bugs@postgresql.org; Mon, 24 Feb 2014 18:44:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI0WP-0000py-CL for pgsql-bugs@postgresql.org; Mon, 24 Feb 2014 18:44:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s1OIitXe005501; Mon, 24 Feb 2014 13:44:55 -0500 From: Tom Lane To: brian@fluggo.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9337: SSPI/GSSAPI with mismatched user names In-reply-to: <20140224183440.1162.91110@wrigleys.postgresql.org> References: <20140224183440.1162.91110@wrigleys.postgresql.org> Comments: In-reply-to brian@fluggo.com message dated "Mon, 24 Feb 2014 18:34:40 +0000" Date: Mon, 24 Feb 2014 13:44:55 -0500 Message-ID: <5500.1393267495@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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