pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Login with blank password 2+ messages / 2 participants [nested] [flat]
* Login with blank password @ 2004-12-07 14:32 rray@tcmail.mstc.state.ms.us 2004-12-11 16:32 ` Re: Login with blank password Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: rray@tcmail.mstc.state.ms.us @ 2004-12-07 14:32 UTC (permalink / raw) To: pgsql-admin Is there a setting in postgresql.conf that will log the password that's used to login with? 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 only occurs in apps I've written using libpq. Using PostgreSQL 7.4.3 on Fedora Core 2. Thanks Richard Ray ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Login with blank password 2004-12-07 14:32 Login with blank password rray@tcmail.mstc.state.ms.us @ 2004-12-11 16:32 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2004-12-11 16:32 UTC (permalink / raw) To: rray@tcmail.mstc.state.ms.us; +Cc: pgsql-admin 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-12-11 16:32 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-12-07 14:32 Login with blank password rray@tcmail.mstc.state.ms.us 2004-12-11 16:32 ` Tom Lane <tgl@sss.pgh.pa.us>
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