From: Tom Lane <tgl@sss.pgh.pa.us>
To: rray@tcmail.mstc.state.ms.us
Cc: pgsql-admin@postgresql.org
Subject: Re: Login with blank password
Date: Sat, 11 Dec 2004 11:32:41 -0500
Message-ID: <16621.1102782761@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.58.0412070821570.21506@rray.drdc.mstc.ms.gov>
References: <Pine.LNX.4.58.0412070821570.21506@rray.drdc.mstc.ms.gov>
rray@tcmail.mstc.state.ms.us writes:
> Is there a setting in postgresql.conf that will log the password that's used to login with?
No (deliberately so).
> If I add "host all user 172.17.32.0 255.255.255.0 password"
> to pg_hba.conf the user can login with a blank password.
> If I add "host all user 172.17.32.1 255.255.255.255 password"
> to pg_hba.conf the user must enter a correct password.
This sounds to me like you are failing to consider the effects of the
order of entries in pg_hba.conf --- ie, in the first case the connection
is being caught by a TRUST-mode entry (or at least, not a password-based
one ... could be IDENT as well). Don't forget to SIGHUP the postmaster
after editing pg_hba.conf, too.
regards, tom lane
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: tgl@sss.pgh.pa.us, rray@tcmail.mstc.state.ms.us
Subject: Re: Login with blank password
In-Reply-To: <16621.1102782761@sss.pgh.pa.us>
References: <Pine.LNX.4.58.0412070821570.21506@rray.drdc.mstc.ms.gov> <16621.1102782761@sss.pgh.pa.us>
* 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