Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 00CFE6330C9 for ; Wed, 14 Jul 2010 14:39:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 01387-05-6 for ; Wed, 14 Jul 2010 17:39:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 8A7C66330B2 for ; Wed, 14 Jul 2010 14:39:43 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5506522916; Wed, 14 Jul 2010 13:39:42 -0400 (EDT) Date: Wed, 14 Jul 2010 13:39:42 -0400 From: Stephen Frost To: Tom Lane Cc: Magnus Hagander , Christopher Head , pgsql-bugs Subject: Re: BUG #5559: Full SSL verification fails when hostaddr provided Message-ID: <20100714173942.GM21875@tamriel.snowman.net> References: <201007130825.o6D8Pepl005798@wwwmaster.postgresql.org> <18252.1279058967@sss.pgh.pa.us> <6811.1279123338@sss.pgh.pa.us> <7342.1279124972@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3fU4qk9r9QYl+PJX" Content-Disposition: inline In-Reply-To: <7342.1279124972@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.26-1-amd64 (x86_64) X-Uptime: 13:36:49 up 321 days, 5:01, 36 users, load average: 0.12, 0.07, 0.08 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/100 X-Sequence-Number: 27444 --3fU4qk9r9QYl+PJX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > ... btw, the libpq documentation claims that >=20 > If hostaddr is specified without host, the value for hostaddr > gives the remote address. When Kerberos is used, a reverse name > query occurs to obtain the host name for Kerberos. >=20 > but so far as I can see this is flat wrong. pg_krb5_sendauth throws > an error if you didn't provide a host name, and so do the other places > in fe-auth.c that need the host name. What we're about to do to SSL > verification will match that. So I think the docs need a fix here. I think the confusion here is that the *Kerberos* libraries do the reverse-DNS lookup to get the hostname to request as part of the principal. It's true that we don't, but that doesn't mean it's not done. Not sure where or if we need to discuss how Kerberos works in the libpq documentation or what the context is for the above, but I'm pretty sure that's where the original wording came from. Thanks, Stephen --3fU4qk9r9QYl+PJX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkw99l4ACgkQrzgMPqB3kig+xQCcD8MWz7WOrHK6/6IO2mI/XBQR W7EAnjuENIW25UqsKvogran7yGw43V+q =br5e -----END PGP SIGNATURE----- --3fU4qk9r9QYl+PJX--