Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 99D926328B7 for ; Wed, 14 Jul 2010 13:29:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 92724-05 for ; Wed, 14 Jul 2010 16:29:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 63A64632768 for ; Wed, 14 Jul 2010 13:29:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o6EGTWP4007343; Wed, 14 Jul 2010 12:29:32 -0400 (EDT) To: Magnus Hagander , Christopher Head , pgsql-bugs Subject: Re: BUG #5559: Full SSL verification fails when hostaddr provided In-reply-to: <6811.1279123338@sss.pgh.pa.us> References: <201007130825.o6D8Pepl005798@wwwmaster.postgresql.org> <18252.1279058967@sss.pgh.pa.us> <6811.1279123338@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 14 Jul 2010 12:02:18 -0400" Date: Wed, 14 Jul 2010 12:29:32 -0400 Message-ID: <7342.1279124972@sss.pgh.pa.us> From: Tom Lane 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/99 X-Sequence-Number: 27443 ... btw, the libpq documentation claims that 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. 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. regards, tom lane