Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] PSPNG: Handling groups that require a member

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] PSPNG: Handling groups that require a member


Chronological Thread 
  • From: John Gasper <>
  • To: Michael R Gettes <>, Bert Lindgren <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] PSPNG: Handling groups that require a member
  • Date: Wed, 11 Jan 2017 12:55:02 -0800
  • Ironport-phdr: 9a23:8YvmbhKScx7oRHSKstmcpTZWNBhigK39O0sv0rFitYgfKvrxwZ3uMQTl6Ol3ixeRBMOAuq4C0bqd6vy8EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6ybL9oMhm7rgrdutQZjIZtN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhTwZPDAl7m7Yls1wjLpaoB2/oRx/35XUa5yROPZnY6/RYc8WSW9HU81MVSJOH5m8YpMBAOQPIOhWr5fzqVgArRS8CgajGPjixSVUin/zx6A2z/4sHAPA0Qc9H9wOqnPUrNDtOakWVuC1zK/IxijCYfxMwjf98JbHcgo8qvyLX7JwftDeyVI3FwzblFWdspHlPzWU1usRtGib6fBsVeSxhG47sgx8pCWkyMkrionMnI0Vy1bE+D1hwIYvIt24T0B7YcajEJtRsSGaK5F6Td8lQ2FtoCo6xacGuYaicCQU1Zsr2hDSZv6GfoWO/xntV/6RLC96iX55Yr6yiAi+/VK+xuHiVcS4yktGoyhYntXUt30A1Qbf5tWaRvdh5EutxyuD2x7J5u1ZIk05mqzWIIM7zLEqjJocq0HDEzf2mEroiK+WcV0p++mz6+TifrXmvoWQN5JyigH/Lqsuncq/Df4+MgcQQ2iX4eW81Lv98k3lWLhHjOE6nrPWvZzEP8gXuLC1DgxP3oo+6RuzEi+q0NECknkGKFJFdgiHj4/sO1zWIvD4Au2wg0+0kDh13fDLJaDhApPMLnffl7fhe6xx60hCxwov1dxf/Y5bCqkdIPLvXU/8rNPYDgU+Mwyp2+boFs992poDWWKUHKCZKrjSvESM5uIuOOmMeJQVtCjnJ/gk4f7ukWE2mUUbfaa3wZsbdmq0Eep7LEWEMjLQhYIkEGwKtwc6BNaip1CeTTNILyK3Ra1nvhkjE5/gAIveEMTlqrGbwG+fH5taaXpLDBjYG3rya8OOVvpJbCOULsB7nzosUrm9DYAoyRyltEn3x6cxfcTO/ShNl5Xj0pBa7vbLmAt6oT57Bt+F3nulUmd1lWQOATk7wPYs8gRG1l6f3P0g0LRjHttJ6qYMC19iOA==

I’m not saying it is right or wrong, but while X.500/RFC256 does require at least one membership to be assigned when creating a group, this requirement has been removed in directories such as 389-ds and Active Directory (and as Bert points out AD does its own thing, but functionally the requirement is removed). And even in directories (e.g. OpenLDAP) that require a member, it does not require a member value to be present. So while the attribute is required, no value is required. Go figure. I’ve seen suggestions on the OpenLDAP list for folks to change the schema to change uniqueMember, etc to be a MAY instead of a MUST to accommodate this issue that Bert is discussing.

 

I don’t like the faux member approach, but from a transactional system and even queuing system standpoint I see where Bert is coming from. It requires extra work to save a create-group request until a add-new-member request comes through. One can either do that extra work, or create a faux member. But it would also require extra work to then remove the faux member when a real member comes around, or when deleting the last member in a group adding the faux member back in. Unless the consensus was to just leave it around forever.

 

The PSP was able to overcome this problem but at great complexity.  My vote is for whatever makes for the relatively easiest coding and relatively easiest admin configuration which should make for better long-term sustainability of this module. Maybe the faux member is just the empty member referenced above.

 

Or just require adopters to change their schema… What no other takers on that? OK, nevermind.

 

-- 

John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

 

 

From: <> on behalf of Michael R Gettes <>
Date: Wednesday, January 11, 2017 at 10:40 AM
To: Bert Lindgren <>
Cc: "" <>
Subject: Re: [grouper-users] PSPNG: Handling groups that require a member

 

Hi Bert,

 

I am afraid I am not appreciating the reasoning for the “faux” member approach.  The LDAP standard has been around for quite some time and whether using groupOfNames or groupOfUniqueNames objects, one membership is required to create the group object and if there are no members, then remove the group object.  Why should we be taking an alternate approach?

 

Thanks

 

/mrg

 

On Jan 11, 2017, at 11:54 AM, Bee-Lindgren, Bert <> wrote:

 

Hello,

 

I'm trying to start a discussion and get to a decision about how PSPNG should handle LDAP groups where the schema requires a value for the membership attribute. This will eventually lead to a solution for GRP-1376.

 

TL;DR: We would like to extend PSPNG's existing group-provisioning process to support group schemas that require members. However, we believe that this will require a pspng-configuration option that will enable persistent maintenance of a faux group member.

 

I don't know if any background is needed, but let's summarize by saying there are three flavors of group schemas in how they require or don't require memberships:

1) Standard LDAP Group objectclasses (rfc 2256) that require at least one member

2) Directory servers that have redefined the "standard" LDAP Group objectclasses in their default schemas. They don't require members

3) Directory servers (Active Directory) that have their own schemas that don't require members.

 

This thread is about how Grouper should support provisioning to (1).

 

In general, here are some observations:

- It's very good if all these (1)-(3) situations can be provisioned by PSPNG in a single implementation

 

- It's nice when groups go from new --> empty --> populated --> empty --> populated --> empty --> deleted in a nice, step-wise way. This means seeing the group in LDAP every step along the way.

 

- When removing the last member from a (1) group, the group needs to be deleted. It will likely slow down PSPNG noticeably if it has to read additional group information to avoid deletion-not-allowed errors or will create logging noise and modest slowness if the extra information is read in response to ldap errors to see if the group actually needs to be deleted.

 

- Sometimes, groups that are deleted and recreated aren't exactly the same. For example, a recreated Active Directory group would have a different SID. Therefore, we cannot standardize our handling of groups by implementing things as if they all require members.

 

- Type (1) groups today are created in (at least) some universities with an initial or persistent Faux member -- an account or dn that doesn't represent a real user. Pspng can be set up to do that today (by adding the Faux member to the group-creation template), but that member would be deleted during full-sync, resulting in errors when that is the last member or when another last member is eventually removed from a group.

 

My conclusions:

a) A single group-provisioning system can handle all the ldap group types, if we take the a Faux-member approach.

b) If Faux-members are too kludgy, then we'll need a separate, noisier and slower implementation that handles provisioning of groups that require members.

 

What do you all think about this?

 

Sincerely,

  Bert Bee-Lindgren

 




Archive powered by MHonArc 2.6.19.

Top of Page