Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXSsW-0006Rk-Pv for pgsql-general@arkaria.postgresql.org; Tue, 27 Oct 2020 17:35:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kXSsS-0006ih-NR for pgsql-general@arkaria.postgresql.org; Tue, 27 Oct 2020 17:35:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXSsS-0006iT-Fc for pgsql-general@lists.postgresql.org; Tue, 27 Oct 2020 17:35:20 +0000 Received: from fairwindsoft2.fairwindsoft.com ([162.249.6.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXSsP-0008Lc-I8 for pgsql-general@postgresql.org; Tue, 27 Oct 2020 17:35:19 +0000 Received: from mbp.localdomain (c-73-3-0-227.hsd1.ks.comcast.net [73.3.0.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: neil) by fairwindsoft2.fairwindsoft.com (Postfix) with ESMTPSA id A9E5218D7; Tue, 27 Oct 2020 12:35:14 -0500 (CDT) From: Neil Message-Id: <0BD36BA9-16FB-4599-8991-6B7FD79BBF3B@fairwindsoft.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_E67CB099-B715-4A21-B004-9CA0753E020A" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: GSSAPI Authentication for pgadmin4 macOS client Date: Tue, 27 Oct 2020 12:35:13 -0500 In-Reply-To: <1061911.1603819431@sss.pgh.pa.us> Cc: Sean McDaniel , pgsql-general@postgresql.org To: Tom Lane References: <1061911.1603819431@sss.pgh.pa.us> X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_E67CB099-B715-4A21-B004-9CA0753E020A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Oct 27, 2020, at 12:23 PM, Tom Lane wrote: >=20 > Sean McDaniel 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. >=20 >> 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. >=20 > A quick look through our source code finds that error string only in > libpq; it indicates that libpq was built without GSSAPI support. >=20 On my Mac pgadmin4 seems to use its own libpq. You can find it at: /Applications/pgAdmin\ = 4.app/Contents/Frameworks/libpq.5.dylib=20 > 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. >=20 >> 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. >=20 > AFAIK that's only likely to help when pgadmin invokes pg_dump or > some other tool, not for its own connections to the server. >=20 > regards, tom lane >=20 >=20 --Apple-Mail=_E67CB099-B715-4A21-B004-9CA0753E020A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On Oct 27, 2020, at 12:23 PM, Tom Lane <tgl@sss.pgh.pa.us> = wrote:

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.


On= my Mac pgadmin4 seems to use its own libpq.

You can find it at: /Applications/pgAdmin\ = 4.app/Contents/Frameworks/libpq.5.dylib 

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


= --Apple-Mail=_E67CB099-B715-4A21-B004-9CA0753E020A--