Re: Unable to get PostgreSQL 15 with Kerberos (GSS) working

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Matthew Dennison <mail(at)matty-uk(dot)co(dot)uk>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Unable to get PostgreSQL 15 with Kerberos (GSS) working
Date: 2024-02-28 17:11:39
Message-ID: Zd9pSzNUZyJ64U3a@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings,

* Matthew Dennison (mail(at)matty-uk(dot)co(dot)uk) wrote:
> I have subsequence discovered that the psql command running from remote Windows (server/client) and RHEL8 works as expected using GSS. PGAdmin4 also 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.
>
> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-02-28 17:13:00 Re: Need Assistance: Command to display procedures does not work
Previous Message Sasmit Utkarsh 2024-02-28 17:08:46 Re: Need Assistance: Command to display procedures does not work