Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI0Mv-0005XE-7B for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Feb 2014 18:35:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WI0Mu-0001Mx-DF for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Feb 2014 18:35:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI0Mr-0001JF-Tt for pgsql-bugs@postgresql.org; Mon, 24 Feb 2014 18:35:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI0Mo-0005Qb-QQ for pgsql-bugs@postgresql.org; Mon, 24 Feb 2014 18:35:05 +0000 MIME-Version: 1.0 Subject: BUG #9337: SSPI/GSSAPI with mismatched user names To: pgsql-bugs@postgresql.org From: brian@fluggo.com Date: Mon, 24 Feb 2014 18:34:40 +0000 Message-ID: <20140224183440.1162.91110@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 9337 Logged by: Brian Crowell Email address: brian@fluggo.com PostgreSQL version: 9.3.3 Operating system: Linux Description: Hello. I posted this to the general discussion group, but I think it's worthwhile to call it a bug, too. I'm working with the Npgsql group on getting integrated security to "just work" in the same way SQL Server's does. I wrote a workaround for one issue, only to find out that I need more workarounds, and I finally realized that this a problem with the way Postgres handles GSSAPI/SSPI logins. You can read my full description here: https://github.com/npgsql/Npgsql/issues/162#issuecomment-35916650 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. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs