pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14333: Remote connections for members of role in pg_hba.conf
2+ messages / 2 participants
[nested] [flat]
* BUG #14333: Remote connections for members of role in pg_hba.conf
@ 2016-09-21 16:53 brodgers3@oreillyauto.com
2016-09-22 01:54 ` Re: BUG #14333: Remote connections for members of role in pg_hba.conf Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: brodgers3@oreillyauto.com @ 2016-09-21 16:53 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14333
Logged by: B. Rodgers
Email address: brodgers3@oreillyauto.com
PostgreSQL version: 9.3.13
Operating system: Ubuntu 14.04.4 LTS
Description:
--- create a role "read_group" with permissions to connect and select on all
objects
--- Similar, create new user to be managed by "read_group" permissions ---
CREATE ROLE myuser LOGIN CONNECTION LIMIT 5;
GRANT read_group TO myuser;
--- Verify user exists and is member of group "read_group" ---
mydb=> \dg myuser
List of roles
Role name | Attributes | Member of
-----------+---------------+------------------
myuser | 5 connections | {read_group}
--- pg_hba.conf entry intended to allow members of "read_group" to connect
---
host mydb +read_group 172.XX.YY.0/24 md5
--- Error received upon attempting remote connection ---
FATAL: no pg_hba.conf entry for host "172.XX.YY.ZZ", user "myuser", database
"mydb", SSL off
Expected either valid connection or password error.
Looking to control arbitrary large list of users with just a couple managed
roles such as "read" or "write" groups such that only the "read" and "write"
groups are specified in places like pg_hba.conf.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14333: Remote connections for members of role in pg_hba.conf
2016-09-21 16:53 BUG #14333: Remote connections for members of role in pg_hba.conf brodgers3@oreillyauto.com
@ 2016-09-22 01:54 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-09-22 01:54 UTC (permalink / raw)
To: brodgers3@oreillyauto.com; +Cc: pgsql-bugs
brodgers3@oreillyauto.com writes:
> --- Error received upon attempting remote connection ---
> FATAL: no pg_hba.conf entry for host "172.XX.YY.ZZ", user "myuser", database
> "mydb", SSL off
> Expected either valid connection or password error.
This example works for me (after suitable adjustment of the IP addresses).
Only theory that comes to mind offhand is that you forgot to tell the
postmaster to reload the pg_hba.conf file after you edited it (via pg_ctl
reload, SIGHUP, etc).
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-09-22 01:54 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21 16:53 BUG #14333: Remote connections for members of role in pg_hba.conf brodgers3@oreillyauto.com
2016-09-22 01:54 ` 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