Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1H1J-0006wr-Jg for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Dec 2014 16:00:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1H1J-00061p-3n for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Dec 2014 16:00:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1E7G-0006Wb-Ik for pgsql-bugs@postgresql.org; Wed, 17 Dec 2014 12:54:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1E7A-0008Lm-Cl for pgsql-bugs@postgresql.org; Wed, 17 Dec 2014 12:54:07 +0000 MIME-Version: 1.0 Subject: BUG #12260: trust entry in pg_hba not working as documented To: pgsql-bugs@postgresql.org From: pauld@jobready.com.au Date: Wed, 17 Dec 2014 12:53:16 +0000 Message-ID: <20141217125316.1322.19845@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12260 Logged by: Paul De Audney Email address: pauld@jobready.com.au PostgreSQL version: 9.3.5 Operating system: Ubuntu 14.04 LTS Description: I have the following pg_hba entry on a PostgreSQL server (10.A.B.C) host repmgr all 10.X.Y.Z/32 trust (the user repmgr was created using "createuser --login --superuser repmgr" via the postgres system account) On the host 10.X.Y.Z I am attempting to connect to PgSQL using this command: psql -h 10.A.B.C -U repmgr -d mydb And this requests a password and then fails on a empty password or non-valid password that I input. I am expecting authentication to work successfully due to the use of the "trust" auth method. When I comment out my pg_hba entry host all all 10.X.Y.Z/24 md5 (this pg_hba entry is after my trust entry, if that matters) I receive the following client side error: psql: FATAL: no pg_hba.conf entry for host "10.A.B.C", user "repmgr", database "mydb", SSL on FATAL: no pg_hba.conf entry for host "10.A.B.C", user "repmgr", database "mydb", SSL off Which to me indicates that the trust entry in the pg_hba is not being parsed by PostgreSQL at all. When I set a password on the repmgr role and use that, authentication does work. Which at the moment I am "working around my insecure intent" by using a pgpass. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs