pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <sravikrishna@aol.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: David Gauthier <davegauthierpg@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Can Pg somehow recognize/honor linux groups to control user access ?
Date: Wed, 22 Aug 2018 12:38:10 -0400
Message-ID: <FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.com> (raw)
In-Reply-To: <CAKFQuwZVmgMHWU9zN4c1ihD3a1WPT_O+83+7mQ7Ta9WMcxthzw@mail.gmail.com>
References: <CAMBRECCm98COXfFXcCzfh088TnX1EA7zozxzyDbErpXz_t9t2Q@mail.gmail.com>
	<5AE89398-678C-436D-9CD0-8FDAB48546DD@aol.com>
	<CAKFQuwZVmgMHWU9zN4c1ihD3a1WPT_O+83+7mQ7Ta9WMcxthzw@mail.gmail.com>



> On Aug 22, 2018, at 12:08 , David G. Johnston <david.g.johnston@gmail.com> wrote:
> 
> On Wed, Aug 22, 2018 at 8:58 AM, Ravi Krishna <sravikrishna@aol.com <mailto:sravikrishna@aol.com>> wrote:
> AFAIK PG does not support it , as yet. IMO this should be implemented as a priority.
> 
> It does not support it natively, no.  What it does support is PAM which I'm led to believe (haven't used it myself) can be configured to accommodate this use case as well as many other configurations people may think up.
> 
> https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PAM <https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PAM;
> 

I am not sure this is the same what I was thinking about.  For example, in db2, connect privilege can be granted to a group and so is grant privilege as in
GRANT SELECT ON TABLE SCHEMA.TABLE TO GROUP ABC;
GRANT CONNECT ON DATABASE TO GROUP ABC 

And the group may not necessarily be local group on the node.  it can be AD too.

In fact DBAs don't even need to get involved when a new user needs DB access.  Sysadmin had to just add that user in a group and we are done.=

view thread (11+ messages)  latest in thread

Message-ID: <FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.com>
Permalink:  ../FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.com/
Also on:    postgresql.org/message-id/FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.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-general@postgresql.org
  Cc: sravikrishna@aol.com, david.g.johnston@gmail.com, davegauthierpg@gmail.com
  Subject: Re: Can Pg somehow recognize/honor linux groups to control user access ?
  In-Reply-To: <FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.com>
  References: <CAMBRECCm98COXfFXcCzfh088TnX1EA7zozxzyDbErpXz_t9t2Q@mail.gmail.com> <5AE89398-678C-436D-9CD0-8FDAB48546DD@aol.com> <CAKFQuwZVmgMHWU9zN4c1ihD3a1WPT_O+83+7mQ7Ta9WMcxthzw@mail.gmail.com> <FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.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