X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 227373A634A for ; Sat, 11 Dec 2004 16:32:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75912-01 for ; Sat, 11 Dec 2004 16:32:42 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 65E993A6331 for ; Sat, 11 Dec 2004 16:32:42 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iBBGWfcf016622; Sat, 11 Dec 2004 11:32:41 -0500 (EST) To: rray@tcmail.mstc.state.ms.us Cc: pgsql-admin@postgresql.org Subject: Re: Login with blank password In-reply-to: References: Comments: In-reply-to rray@tcmail.mstc.state.ms.us message dated "Tue, 07 Dec 2004 08:32:22 -0600" Date: Sat, 11 Dec 2004 11:32:41 -0500 Message-ID: <16621.1102782761@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/84 X-Sequence-Number: 15670 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