pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Christopher Head <chris2k01@hotmail.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #5559: Full SSL verification fails when hostaddr provided
Date: Wed, 14 Jul 2010 18:28:00 -0400
Message-ID: <20100714222800.GS21875@tamriel.snowman.net> (raw)
In-Reply-To: <18779.1279144684@sss.pgh.pa.us>
References: <6811.1279123338@sss.pgh.pa.us>
	<7342.1279124972@sss.pgh.pa.us>
	<20100714173942.GM21875@tamriel.snowman.net>
	<9371.1279130114@sss.pgh.pa.us>
	<20100714183240.GO21875@tamriel.snowman.net>
	<10950.1279135209@sss.pgh.pa.us>
	<20100714212805.GP21875@tamriel.snowman.net>
	<18347.1279143321@sss.pgh.pa.us>
	<20100714214403.GQ21875@tamriel.snowman.net>
	<18779.1279144684@sss.pgh.pa.us>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Hm.  That might happen to work for Kerberos, but it won't work for
> GSSAPI or SSPI --- in both those code paths we just push the host name
> literally into a constructed principal string.  Not sure if we really
> want Kerberos to work differently from the more modern alternatives.

I'm not looking at the code right now, but I just don't see how this can
be the case, at least for GSSAPI.  I routinely use both krb5 and GSSAPI
auth types (depending on which server I'm using) with values passed to
-h that certainly aren't the FQDN of the host, and it works just fine.
I can't imagine we're doing some magic here ourselves and then passing
the right FQDN to the Kerberos/GSSAPI libraries.

Typical usage, all of them work:
vardamir/8.2:
  psql -h 172.18.148.10 -d gis
  psql -h vardamir -d gis
  psql -h vardamir.tsf.noblis.org -d gis

beren/8.3:
  psql -h beren -d gis
  psql -h 172.18.148.12

beren/8.4:
  psql --cluster 8.4/main -h beren -d gis
  psql --cluster 8.4/main -h 172.18.148.12
  psql --cluster 8.4/main -h beren.nicc.noblis.org -d gis

beren:/home/sfrost> hostname --fqdn
beren.tsf.noblis.org

I always get a postgres/beren.tsf.noblis.org@TSF.NOBLIS.ORG ticket, for
that server, since that's what the rDNS is, and that's what's in the KDC
(it hasn't got entries for any of the others).

In any case, let's please make sure not to break that. :)

	Thanks!

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 196B) download

view thread (26+ messages)  latest in thread

Message-ID: <20100714222800.GS21875@tamriel.snowman.net>
Permalink:  ../20100714222800.GS21875@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20100714222800.GS21875@tamriel.snowman.net

 · 

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-bugs@postgresql.org
  Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us, magnus@hagander.net, chris2k01@hotmail.com
  Subject: Re: BUG #5559: Full SSL verification fails when hostaddr provided
  In-Reply-To: <20100714222800.GS21875@tamriel.snowman.net>
  References: <6811.1279123338@sss.pgh.pa.us> <7342.1279124972@sss.pgh.pa.us> <20100714173942.GM21875@tamriel.snowman.net> <9371.1279130114@sss.pgh.pa.us> <20100714183240.GO21875@tamriel.snowman.net> <10950.1279135209@sss.pgh.pa.us> <20100714212805.GP21875@tamriel.snowman.net> <18347.1279143321@sss.pgh.pa.us> <20100714214403.GQ21875@tamriel.snowman.net> <18779.1279144684@sss.pgh.pa.us> <20100714222800.GS21875@tamriel.snowman.net>

* 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