From: Jeanna Geier <jgeier@apt-cafm.com>
To: pgsql-admin@postgresql.org
Subject: pg_hba.conf: 'trust' vs. 'md5' Issues
Date: Tue, 26 Sep 2006 08:43:27 -0500
Message-ID: <006201c6e171$bee28c70$6700a8c0@geier> (raw)
Hi All-
I'm having some issues with connecting to my servers if I put 'md5' as the
connection method in my pg_hba.conf (which is what I want!). If I put
'trust', I can connect without any issues.
I built 8.0.8 from source because we wanted to use SSL; and my pg_hba.conf
file currently looks as follows:
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# IPv4 local connections:
#host all all 127.0.0.1/32 trust
# IPv6 local connections:
#host all all ::1/128 trust
hostssl all all 127.0.0.1/32 trust
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>
But if I change the hostssl line back to: hostssl all all 127.0.0.1/32 trust
and restart the server, I can connect through both pgadmin and the command
line.
Would I have to had done something special when building Postgres to enable
the use of md5? My command line parameters were:
./configure --with-openssl --with-includes=/usr/local/include --with-libraries=/usr/local/lib
--without-zlib
Thanks in advance for all of your help! If you need any more info, just let
me know. I really need to get this issue resolved.
Thanks,
-Jeanna
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-admin@postgresql.org
Cc: jgeier@apt-cafm.com
Subject: Re: pg_hba.conf: 'trust' vs. 'md5' Issues
In-Reply-To: <006201c6e171$bee28c70$6700a8c0@geier>
References: <006201c6e171$bee28c70$6700a8c0@geier>
* 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