Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8cpx-0005T5-Fw for pgsql-admin@arkaria.postgresql.org; Fri, 03 Jun 2016 00:19:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b8cpw-0008O1-Tc for pgsql-admin@arkaria.postgresql.org; Fri, 03 Jun 2016 00:19:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b8cpw-0008NT-1Z for pgsql-admin@postgresql.org; Fri, 03 Jun 2016 00:19:40 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8cps-0003ck-Db for pgsql-admin@postgresql.org; Fri, 03 Jun 2016 00:19:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 627AA5F79C; Thu, 2 Jun 2016 20:18:35 -0400 (EDT) Date: Thu, 2 Jun 2016 20:18:35 -0400 From: Stephen Frost To: Bear Giles Cc: "Weingartner, Steven" , "pgsql-admin@postgresql.org" Subject: Re: GSSAPI / Kerberos Authentication Message-ID: <20160603001835.GA21416@tamriel.snowman.net> References: <54213787d7c441bb9981e2e031709aa5@MS-EX13RB-P007.corp.SE.sempra.com> <09818804b4f547eab26ee29fba47932f@MS-EX13RB-P007.corp.SE.sempra.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qcmJb3WyrQSdDnng" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 20:13:07 up 100 days, 21:05, 37 users, load average: 0.27, 0.22, 0.16 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --qcmJb3WyrQSdDnng Content-Type: text/plain; charset=us-ascii Content-Disposition: inline All, * Bear Giles (bgiles@coyotesong.com) wrote: > I remember reading comments in the code that case matters - postgres and > POSTGRES are not the same - but I'm drawing a blank on the rest. I just > started looking at the code myself though - others probably have more > experience. That's correct, case absolutely matters and it needs to match. There are options in postgresql.conf to control what's expected. This is a source of common issue when coming from Windows clients to Linux servers (or the other way around). In particular, review section 19.3.3 of the 9.5 docs: https://www.postgresql.org/docs/9.5/static/auth-methods.html#GSSAPI-AUTH For the client side, review krbsrvname: https://www.postgresql.org/docs/9.5/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS Check the klist from the client side and also look at the keytab that's on the server and what's in the KDC database and make sure they all match. What the client asks for from the KDC needs to be what the KDC has and what is installed in the keytab on the server for it all to work. Thanks! Stephen --qcmJb3WyrQSdDnng Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXUMzaAAoJEO1sijiDR2RV8uEQAJXepCl6mgG9lvKUD8oIW04N aQOwKOhZ1WifGGvlqvwKvlSK99YNb/b1Sq28jfSUNrzn+jmmij3kGZBH1VHRfwEF yla6OPXQkN1jt43AxGXF3jkpiuQHgSNLv9sKbU/8yzbdJAOiz3D2D2SnFycPpb11 51KDPaRHSBm9B3g3jDV0A8sLwZpoNe2NM+sKvIx+e/2uKzDF2pQFZgJKA4edgk1D qcJWbXmnde7t7qJUjNkwrv0uxNzOmHCYAKK2uEWYUn/VFdwDiGn6yUXt+KCdasSf q8nNR6PAqsfI/sqH1tlaTsmJDz8ZnIx0U4vx73D6YW3b+TNqEZZxrhG1V52Jm4Bu xnN+Yrci2Bvj7ZqcU7vxsTaTHr8TlSQaqaM29bU9X6CQpz01QcXpWgjt4WXPGDRN VgLzw+dH7KKknaJdcV7jI2CC4V+Gi0ZrqiTIJnFYXPGzCOffO6h94H6GSuQPzF6z c/iQ2tdc4zRIgKe3ZqANk5B+rC6uoo/rrq4Z7ZC7LY/57o6w/D4vni9cP/ywEdit UCoyMX+o2rUHvqGVuKTu2dbSOhGr0+sHr9I1eyGvlpu7bFaUDcDxdFF3RpCOK4Ps X88erlVh6NxZSHtrVGZNh4cdaku4gBxg4RWa00d+ujfyzbq5j/oUkDn/sES1ZTBQ j6JlcLeaADTHdNpQtnc3 =O9Ku -----END PGP SIGNATURE----- --qcmJb3WyrQSdDnng--