pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sean McDaniel <sean.m.mcdaniel@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: GSSAPI Authentication for pgadmin4 macOS client
Date: Tue, 27 Oct 2020 13:23:51 -0400
Message-ID: <1061911.1603819431@sss.pgh.pa.us> (raw)
In-Reply-To: <CAML5wTXwapfb8+-BGrHO-e6XB+z78ZwL2yfoWKsNPhOBdh3R4g@mail.gmail.com>
References: <CAML5wTXwapfb8+-BGrHO-e6XB+z78ZwL2yfoWKsNPhOBdh3R4g@mail.gmail.com>

Sean McDaniel <sean.m.mcdaniel@gmail.com> writes:
> I'm using pgadmin4 on a macOS system and I'm having trouble connecting to a
> server of interest. The "Connect to Server" dialog box has a warning:
> "GSSAPI authentication not supported". I cannot proceed beyond that point.

> It seems to be a GSSAPI issue. I have postgres installed via homebrew and
> it supports GSSAPI.  I can connect directly to the server using psql (and
> pgcli) from the command line without issue.

A quick look through our source code finds that error string only in
libpq; it indicates that libpq was built without GSSAPI support.

Since you say that you can connect with psql, it sounds like there is
more than one copy of libpq.dylib on your machine and not all of them
support GSSAPI.  You could use "otool -L" on psql to verify which
libpq it's linked to.  Perhaps the same thing will work on pgadmin,
but I'm unsure which file to check for that.  Anyway the bottom line
here is almost certainly that pgadmin isn't using your homebrew
build of libpq, but some other one.

> I have tried to get pgadmin4 to use these binaries by putting
> /usr/local/bin under Preferences > Paths > Binary Paths for "PostgreSQL
> Binary Path" but that doesn't fix the issue, even after a pgadmin4 restart.

AFAIK that's only likely to help when pgadmin invokes pg_dump or
some other tool, not for its own connections to the server.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <1061911.1603819431@sss.pgh.pa.us>
Permalink:  ../1061911.1603819431@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1061911.1603819431@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sean.m.mcdaniel@gmail.com
  Subject: Re: GSSAPI Authentication for pgadmin4 macOS client
  In-Reply-To: <1061911.1603819431@sss.pgh.pa.us>
  References: <CAML5wTXwapfb8+-BGrHO-e6XB+z78ZwL2yfoWKsNPhOBdh3R4g@mail.gmail.com> <1061911.1603819431@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox