grouper-users - [grouper-users] RE: Attribute Based Provisioning - PSPNG
Subject: Grouper Users - Open Discussion List
List archive
- From: Drew Zebrowski <>
- To: "Bee-Lindgren, Bert" <>, "Black, Carey M." <>, "" <>
- Subject: [grouper-users] RE: Attribute Based Provisioning - PSPNG
- Date: Mon, 5 Jun 2017 14:43:52 +0000
- Accept-language: en-US
- Authentication-results: oit.gatech.edu; dkim=none (message not signed) header.d=none;oit.gatech.edu; dmarc=none action=none header.from=jefferson.edu;
- Ironport-phdr: 9a23:nrWHrx82O41VC/9uRHKM819IXTAuvvDOBiVQ1KB+0+IRIJqq85mqBkHD//Il1AaPBtSEra8bwLWJ+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFKiTanYb5/Lhq6oAfTu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8rxmQwH0higZKzE58XnXis1ug6JdvBKhvAF0z4rNbI2IKPZyYqbRcNUHTmRDQ8lRTTRMDIOiYYUSE+oPM+VWr4f/qFsPsRSxChKhC/nzxjNUnHL6wbE23/onHArb3AIgBdUOsHHModv7LqcdT+60x7TLwjrddPxWwzD96YbTchAioPGHQLV9fNbXyUYyDQPKkFuRpZbmMDyLzesNqW+b7uR7VeKsim4qsANxrSahxscilIbJnJkVylfC9Slj3ok6OMC4RVd9bNW5HpVQsCSaOJF3QsMkW2xouSA6yqEYtp6heigF1ognywDFZ/OZboeI/wrvVOGMITdkgHJlf7W/hxWo/Ue8ze38U8+520tJoCpditTAq38A2h7J5sSaRfZx4l2t1SiT2wzJ9+1JIUM5mbLGJ5MuwLM8jIcfvEvfEiPshkn7gqGbel859uWp8+jrfKjqq56GO4J6lA3yKLkil8+iDegiLwQDXW6W8vmm2rL55032WrBKg+U2kqbHtJDaItwWp6GnAw9Qz4ov9RSyAy2k0NsGk3kHIkxKeAicj4juPVHCOu73Auqig1i0kTdrwe7JPqH5D5nQIXXOkq3tcaty5kJA0gY/08xT64hJBrwBI///Qkrxu8bZDh89PQy02eHnCNBl24wEX2KAH7WZP73csFOS5+MgPfKDZJUSuDfzMPgl5P/ugGQ7mVADc6mp04UYaGqjHvRhJUWVe2TjjcocEWsSpAoxUPTqiEGeUT5Uf3uyULg85jYmCIK+E4jDXJmhgKGa3CilBJ1WfXtLClSNEXfza4WEQOkAZDiTIs9njjwLS6KhS4k/2hGyqgP20aRoIffJ+n5QiZW2nvJ46qj3lBc++iZ5CYDV+WyXUys8ymkFXSNw1q1y5Eh8zFuMy6V+q/tZCZpc7u9EWQd8OJLBmagyQfr2UwnCOp+iQUyrU52DR3t5Gtg1ytQNJR8nQP2llQ2F0ia3Vftd3bORA4Es/7iZwmP8Pd1VynDa2bMngkV8BMZDKCfu0qFl8BXLCpSMjl6Ujb2CdKIA0TTL+XvZi2eCoRcLfhR3VPDpR30ALnnbp87++VjBTvf6ILIrKAZej/yPILFNdcbqjH1ESfntNc7FZGT3lmutU0XbjoiQZZbnLj1OlB7WD1IJxkVKpS6L
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
If I’m able to extract the unique value of uidNumber and gidNumber from our identity registry for all users (using a hook or something like that), I guess what
I’m really asking is, using LdapAttributeProvisioner can Grouper set objectclass, uidNumber and gidNumber attributes for a person. Or is that just not possible with the way LdapAttributeProvisioner is designed? I could handle this process a few ways as I see it. We could just set posixAccount objectclass in the target endpoint for all persons and add the uidNumber/gidNumber
attributes at the time of provisioning. This would complicate our provisioning process slightly but is definitely doable with some work. The other method, using Grouper, person accounts are provisioned on the endpoint as-is, no posixAccount objectclasses (or related attributes). As users that are
authorized to have this type of access are added into the appropriate group in Grouper, PSPNG will add that objectclass and required attributes to their person entry. I like the Grouper option because it doesn’t require me to provision posixAccount’s for everyone, only when they’re needed, plus we can offload the manual updating
of these accounts in the target LDAP (we currently run a script that does this) to the appropriate party here at Jefferson with the possibility of automating the population of these groups down the road. Hopefully I was able to clearly expand on exactly what I want to accomplish. Drew Zebrowski
Thomas Jefferson University From: Bee-Lindgren, Bert [mailto:]
Drew, You are going to want to use a group-provisioning template as described in Carey's link. This will generally do the right thing and certainly should prevent objectclass violations. The question I have is what you want the gidNumber and uidNumber of the group objects to be? a) Normally, gidNumber will come from Grouper, eg, ${group.idIndex}. b) [Assuming you didn't mean memberUid] I'm not sure what uidNumber should be in your environment.RFC2307 [snippet below] indicates that you'll have to add another objectclass to define uidNumber.
And then you'll need to find a value in the grouper group to define it. Let us know a little more and we can help. ( 1.3.6.1.1.1.2.2 NAME 'posixGroup' DESC 'Standard LDAP objectclass' SUP top STRUCTURAL MUST ( cn $ gidNumber ) MAY ( userPassword $ memberUid $ description ) X-ORIGIN 'RFC 2307' ) Sincerely, Bert Bee-Lindgren From:
<>
on behalf of Black, Carey M. <> Drew, I think you are not looking at this the right way. ( But I am not an expert at grouper or specifically the PSPNG part.) If you have not bumped into this page, it looks relevant.
Specifically I think this looks “wrong” to me. “ changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeName = gidNumber changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeValueFormat = ${new(java.util.Random).nextInt()} changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeName = uidNumber changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeValueFormat = ${new(java.util.Random).nextInt()} “ You are trying to insert random integers for the gid and uid for the user. I doubt that is really what you want. ( on every “provisioning” of the user/groups.) My guess is that you would want to assign a value ( using grouper to be the “authoritative source”) then send those values out to the connected system(s). REF:
https://spaces.internet2.edu/display/Grouper/Getting+started+with+hooks2
(Note: this is circa 2011… YMMV )
“Hooks Example - Assign a UNIX ID to Each New Group” REF:
https://spaces.internet2.edu/display/Grouper/Integer+IDs+on+Grouper+objects
( NOTE: circa 2012…. YMM Improve?, looks more civilized.
“In Grouper 2.2+ the main Grouper objects in the database (groups, folders, attribute definitions, attribute names) will be assigned unique integers. These integers
can be used, for instance, as UNIX GIDs.” Hope that helps. --
Carey Matthew
From:
[]
On Behalf Of Drew Zebrowski We are working on a way to provision posixAccount objectclass attributes for users and are looking at using Grouper to see if we can do this. I am new to Grouper and don’t have much
experience with using the PSPNG component. Here is our end-goal: Provision out the following attributes to an LDAP Person Entry. -
Generate objectclass: posixAccount -
Generate uidNumber: <Random Number> -
Generate gidNumber: <Random Number> In grouper-loader.properties, I tried the following which defines multiple attribute/value pairs. It doesn’t appear as though Grouper handles this since the LDAP returns an ObjectClass
Violation. # User gidNumber Provisioning changeLog.consumer.pspng_secsds_gidNumber.class = edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim changeLog.consumer.pspng_secsds_gidNumber.type = edu.internet2.middleware.grouper.pspng.LdapAttributeProvisioner changeLog.consumer.pspng_secsds_gidNumber.quartzCron = 0 * * * * ? changeLog.consumer.pspng_secsds_gidNumber.retryOnError = true changeLog.consumer.pspng_secsds_gidNumber.ldapPoolName = secsds changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeName = objectclass changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeValueFormat = posixAccount changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeName = gidNumber changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeValueFormat = ${new(java.util.Random).nextInt()} changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeName = uidNumber changeLog.consumer.pspng_secsds_gidNumber.provisionedAttributeValueFormat = ${new(java.util.Random).nextInt()} changeLog.consumer.pspng_secsds_gidNumber.userSearchBaseDn = cn=users,o=tjuh changeLog.consumer.pspng_secsds_gidNumber.userSearchFilter = uid=${subject.id} Is this a supported function of the loader? Can it provision objectclasses along with the required attributes through the attribute provisioner or is this not designed to work that
way? Has anyone done this sort of thing and is willing to share their experience? Thanks. Drew Zebrowski Thomas Jefferson University
|
- [grouper-users] Attribute Based Provisioning - PSPNG, Drew Zebrowski, 06/02/2017
- [grouper-users] RE: Attribute Based Provisioning - PSPNG, Black, Carey M., 06/02/2017
- [grouper-users] Re: Attribute Based Provisioning - PSPNG, Bee-Lindgren, Bert, 06/02/2017
- [grouper-users] RE: Attribute Based Provisioning - PSPNG, Drew Zebrowski, 06/05/2017
- [grouper-users] Re: Attribute Based Provisioning - PSPNG, Bee-Lindgren, Bert, 06/02/2017
- [grouper-users] RE: Attribute Based Provisioning - PSPNG, Black, Carey M., 06/02/2017
Archive powered by MHonArc 2.6.19.