Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsW9L-0000vY-4s for pgsql-general@arkaria.postgresql.org; Wed, 22 Aug 2018 16:38:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsW9I-0002Ys-GR for pgsql-general@arkaria.postgresql.org; Wed, 22 Aug 2018 16:38:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsW9D-00021V-LQ for pgsql-general@lists.postgresql.org; Wed, 22 Aug 2018 16:38:20 +0000 Received: from sonic305-3.consmr.mail.bf2.yahoo.com ([74.6.133.42]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsW99-0005ka-5u for pgsql-general@postgresql.org; Wed, 22 Aug 2018 16:38:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1534955893; bh=Y9fj4YkE5wiG27encznH8qSKbRsTswpRIOT4HoR52+w=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From:Subject; b=Vq4N5s24RGp4MKUim0D8pxfECVb8saKqM+NMLUHty4mCX99JnCFwrD0d5fvoAbM4wAtuIvtXWSd6i3YiffRa7o97IY+Yre3Ka0IuxKMlw5nvaBmSnxJoM+motmHnpcf8GsCI/KhvahgPxCzaFMXq+9ps1UzekJhqLJ2wKb8UJS3mJ3W1Nf5EgtK4+JFykaclGVM+J0eJ6r9KqgncT63QCD2+7IKm3n1mW5GewwlhT2sUFDToWJ65tpEiFgAaxviuxebdpDj2Yl3+IUZ1cGxEqk5Si0WsMwZQb6zE31JEBT29d+jH7aA2pjOT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b9cBX1Ihha4_fZI_FGOJ k Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Wed, 22 Aug 2018 16:38:13 +0000 Received: from 165.225.39.63 (EHLO [192.168.1.131]) ([165.225.39.63]) by smtp401.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e53a37edd15af042dac77e4ca51c0166; Wed, 22 Aug 2018 16:38:12 +0000 (UTC) From: Ravi Krishna Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_6670E70F-4E79-40A9-8917-B7902180435B" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Can Pg somehow recognize/honor linux groups to control user access ? Date: Wed, 22 Aug 2018 12:38:10 -0400 In-Reply-To: Cc: David Gauthier , pgsql-general To: "David G. Johnston" References: <5AE89398-678C-436D-9CD0-8FDAB48546DD@aol.com> X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_6670E70F-4E79-40A9-8917-B7902180435B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Aug 22, 2018, at 12:08 , David G. Johnston = wrote: >=20 > On Wed, Aug 22, 2018 at 8:58 AM, Ravi Krishna > wrote: > AFAIK PG does not support it , as yet. IMO this should be implemented = as a priority. >=20 > 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. >=20 > https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PAM = >=20 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=20 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.= --Apple-Mail=_6670E70F-4E79-40A9-8917-B7902180435B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii


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> 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.



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.
= --Apple-Mail=_6670E70F-4E79-40A9-8917-B7902180435B--