Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfNTA-00HHnb-R9 for pgsql-general@arkaria.postgresql.org; Wed, 28 Feb 2024 17:11:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rfNT9-00Cty7-9y for pgsql-general@arkaria.postgresql.org; Wed, 28 Feb 2024 17:11:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfNT8-00Ctxz-Kr for pgsql-general@lists.postgresql.org; Wed, 28 Feb 2024 17:11:47 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfNT5-001qy7-9z for pgsql-general@lists.postgresql.org; Wed, 28 Feb 2024 17:11:45 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 52D945F7B7; Wed, 28 Feb 2024 12:11:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowman.net; s=dkim; t=1709140299; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=STSfkGYe+b2OXlZZO7MfDwzDJQ/LDSUZwbtipb4Zf24=; b=TaV3HQdTxDZhzIt8JKPfXPQ2MlryiFRBBHFW4+R745c5xpMUc96p0bWybJeKQreABen7Lz zul5eFc0VCLu+RqcoOzjc/eXuCX5o7RHtaW12cBpGFrEm2HT+i0YiuYm0UptuozDNozJpB a/TVhI9xp69rwICKXB02FUV884kjFS0= Date: Wed, 28 Feb 2024 12:11:39 -0500 From: Stephen Frost To: Matthew Dennison Cc: "pgsql-general@lists.postgresql.org" Subject: Re: Unable to get PostgreSQL 15 with Kerberos (GSS) working Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ATasC4hxZwmIR+i5" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --ATasC4hxZwmIR+i5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Matthew Dennison (mail@matty-uk.co.uk) wrote: > I have subsequence discovered that the psql command running from remote W= indows (server/client) and RHEL8 works as expected using GSS. PGAdmin4 als= o works via Kerberos (was on my list of things to get working). It's just = locally on the server psql will not work to postgresql running on the same = server. >=20 > I really don't get it, but have decided I can live without it working on = the server. Perhaps I wasn't clear- it's not going to work if you do: psql -h localhost Instead, try doing: psql -h hostname.mydomain.net -U postgres -d postgres Basically, Kerberos isn't really set up to work when the host you're connecting to is named 'localhost' because the name of the host is how you figure out what ticket to acquire from the KDC. Thanks, Stephen --ATasC4hxZwmIR+i5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmXfaUgACgkQ7WyKOINH ZFXhNBAAx/EPE6pkJ1tZXzrDvmfZetBidbjckx1c58M444a3MbxZ9fmlH6WF0Dkh 3BDEnMl18GwZT3nRtF8Q9pOK7KNh8PxAbe5yc52wvbrYyG9CH4Xh7xoGd+YeCu06 trCmz11Y8Af+xH4MXwrF/c2ehslDxVtQyu53xhyCN5FrdEhxZ8xnX0jOkiSpvUCv F4VQ0fmak/+ObpWlbQzzPEOlwhyAWOCyqbQK4kaFOfmGoeh0Ys9xTGQnVuUuzFnx 1Eh3mp4n6gZu2hldDA/ODjdijOBlMYh72UDsWUj5gk8GfDFMXPQE90XV0A3IA/+V AIG+HEXxoy4knyxTCi92dnNlVzx/MTaG7WGwxPGdDp0XJ13NUnD8x752OcIqhYHZ IGEGkbUPHzL0KQ9XTprwKQAbHIhSN7thTLcdz6+TNmdLj5yyIxh3wh4k2u1/VboB +6fZhbvXgmKSYL4lf0znKyxxceRoF8GfxD0KMf0SgB/ZbR0oCjCwLKGu8mUP0PZe 0WJGopuYBWIvVrqUt6JWwIKp3FGjno9rEtJeMnUOo0AP9K8xpzNtcmafy2/VixYV XN58uXOkGBFqQ/2d2bzAksqr44YFF95aO/Ki3vmdpGUjySkPtEfAna7V2ImlTL/H 5jMTGKMK/gxnxWCmvuPua+Fp0Ina4Lbk96DGlIdlRg4XSQCcMCI= =Rqtw -----END PGP SIGNATURE----- --ATasC4hxZwmIR+i5--