Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9DC9B64FFC4 for ; Wed, 29 Oct 2008 15:54:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 67760-05 for ; Wed, 29 Oct 2008 15:54:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id E1AEA64FFA2 for ; Wed, 29 Oct 2008 15:54:40 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-101-5.bk7-dsl.surnet.cl [200.126.101.5]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m9TIwo7u007865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Oct 2008 11:58:53 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6F18847CBC; Wed, 29 Oct 2008 15:54:34 -0300 (CLST) Date: Wed, 29 Oct 2008 15:54:34 -0300 From: Alvaro Herrera To: Scott Marlowe Cc: Peter Koczan , "pgsql-admin@postgresql.org" Subject: Re: SSL and md5 password? Message-ID: <20081029185434.GH4331@alvh.no-ip.org> References: <4544e0330810291007p5b68fba2o4ee782b4d4f92878@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 29 Oct 2008 11:58:53 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/175 X-Sequence-Number: 30631 Scott Marlowe escribió: > On Wed, Oct 29, 2008 at 11:07 AM, Peter Koczan wrote: > > And an md5 connection... > > > > $ /s/postgresql/bin/psql -h dumbo.cs.wisc.edu -p 5432 -U test_md5 koczan_test > > Password for user test_md5: > > psql: FATAL: no pg_hba.conf entry for host "128.105.162.36", user > > "test_md5", database "koczan_test", SSL off > > According to this, you're trying to connect with SSL off, right? I > don't think you've got any matching lines for that in your > pg_hba.conf. But I could be reading that wrong. libpq tries to connect with SSL on and then falls back to SSL off. If the latter fails, the error message from the first attempt has been overwritten, and only the second one is logged. This has been fixed by Magnus on CVS HEAD. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support