Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1HFB-0007ZJ-CG for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Dec 2014 16:14:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1HFA-0002Uj-OP for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Dec 2014 16:14:32 +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 1Y1HCk-0002Op-Js for pgsql-bugs@postgresql.org; Wed, 17 Dec 2014 16:12:02 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y1HCY-0003gO-LW for pgsql-bugs@postgresql.org; Wed, 17 Dec 2014 16:11:58 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 3F1E728C27; Wed, 17 Dec 2014 08:11:44 -0800 (PST) Received: from EX13-CAS-011.vmware.com (EX13-CAS-011.vmware.com [10.113.191.63]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 3BF68B11FE; Wed, 17 Dec 2014 08:11:44 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-007.vmware.com (10.113.191.27) with Microsoft SMTP Server (TLS) id 15.0.913.22; Wed, 17 Dec 2014 08:11:42 -0800 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Wed, 17 Dec 2014 08:11:41 -0800 Message-ID: <5491AB34.5090005@vmware.com> Date: Wed, 17 Dec 2014 18:11:32 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: , Subject: Re: BUG #12260: trust entry in pg_hba not working as documented References: <20141217125316.1322.19845@wrigleys.postgresql.org> In-Reply-To: <20141217125316.1322.19845@wrigleys.postgresql.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) 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 On 12/17/2014 02:53 PM, pauld@jobready.com.au wrote: > 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) You mixed up the "database" and "user" columns in pg_hba.conf. The syntax is: # host DATABASE USER ADDRESS METHOD [OPTIONS] So your trust-entry above applies to all users connecting to "repmgr" database. Try: host all repmgr 10.X.Y.Z/32 trust - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs