Re: pg_hba.conf: 'trust' vs. 'md5' Issues

From: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
To: Jeanna Geier <jgeier(at)apt-cafm(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_hba.conf: 'trust' vs. 'md5' Issues
Date: 2006-09-26 15:01:24
Message-ID: Pine.LNX.4.64.0609260755100.32444@discord.home.frostconsultingllc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On Tue, 26 Sep 2006, Jeanna Geier wrote:

> Hi All-
>
> If I change the hostssl line to: hostssl all all 127.0.0.1/32 md5, restart
> the server, and attempt to connect via pgadmin, I see the message 'Connecting
> to the database... Failed.' If I attempt to connect to a database using the
> command line:
> C:\msys\1.0\local\pgsql\bin>psql -d apt -U postgres
> Password:
> psql: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "postgres",
> database "apt", SSL off
> C:\msys\1.0\local\pgsql\bin>
>

Jeanna,

It seems that for some reason either your server or your client are not trying
to use SSL. Note the: "SSL off" in the error message you received. Do you
have a server.crt in the data directory of the postgres server?

When you have the hostssl line set for trust, do you get something like this
when you connect with psql:

Welcome to psql 8.0.8, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)

Or are you missing the SSL connection line?

--
Jeff 'Frosty' Frost - AFM #996 - Frost Consulting, LLC Racing
http://www.frostconsultingllc.com/ http://www.motonation.com/
http://www.suomy-usa.com/ http://www.motionpro.com/
http://www.motorexusa.com/ http://www.lockhartphillipsusa.com/
http://www.zoomzoomtrackdays.com/ http://www.braking.com/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2006-09-26 15:02:19 Re: WAL configuration and REINDEX
Previous Message Jeanna Geier 2006-09-26 14:57:15 Re: Beginner's Question: No pg_hba.conf entry for host...SSL Off

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Frost 2006-09-26 15:05:24 Re: pg_hba.conf: 'trust' vs. 'md5' Issues
Previous Message Jeanna Geier 2006-09-26 13:43:27 pg_hba.conf: 'trust' vs. 'md5' Issues