pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: pauld@jobready.com.au
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12260: trust entry in pg_hba not working as documented
Date: Wed, 17 Dec 2014 18:11:32 +0200
Message-ID: <5491AB34.5090005@vmware.com> (raw)
In-Reply-To: <20141217125316.1322.19845@wrigleys.postgresql.org>
References: <20141217125316.1322.19845@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <5491AB34.5090005@vmware.com>
Permalink:  ../5491AB34.5090005@vmware.com/
Also on:    postgresql.org/message-id/5491AB34.5090005@vmware.com

 · 

reply

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-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, pauld@jobready.com.au
  Subject: Re: BUG #12260: trust entry in pg_hba not working as documented
  In-Reply-To: <5491AB34.5090005@vmware.com>
  References: <20141217125316.1322.19845@wrigleys.postgresql.org> <5491AB34.5090005@vmware.com>

* 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