Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Initial teething problems with PSPNG

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Initial teething problems with PSPNG


Chronological Thread 
  • From: "Bee-Lindgren, Bert" <>
  • To: Jeffrey Williams <>, Mark Cairney <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Initial teething problems with PSPNG
  • Date: Wed, 6 Dec 2017 14:39:57 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:v6IuSRVVWoLNFvbFQRPdr9Twm/DV8LGtZVwlr6E/grcLSJyIuqrYZRWCuqdThVPEFb/W9+hDw7KP9fuxCSpYud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Lxi6txndutULioZ+N6g9zQfErGFVcOpM32NoIlyTnxf45siu+ZNo7jpdtfE8+cNeSKv2Z6s3Q6BWAzQgKGA1+dbktQLfQguV53sTSXsZnxxVCAXY9h76X5Pxsizntuph3SSRIMP7QawoVTmk8qxmUwHjhjsZODEl8WHXks1wg7xdoBK9vBx03orYbJiIOPZiYq/ReNUXTndDUMlMTSxMGoOyYZUSAeodM+hWrIf9qFkPrRSiCgahH/ngxiNUinLswaE2z/ktHAfb1wIgBdIOt3HUoc37OKoPT++60rDEwzPCb/NQxDj955LIfQ4nof2UQLl9bNTeyVMzFw/Lk16drpfqMC2P1uQRqWSU9PRvWvy2h24jqgFxpCWgxsg2iobXgIIY0VfE9SRlwIovKt23UlJ7bsC4H5tQrS2VKZZ5Qt47TmxupS00xLoGuZuhcygLzpQq3xHfa+aAc4iV+hLsSvyRLS1ii3J9YLKznxSy8U+7xe3mS8m01k1KripbndnIsnABzQbT6tWBSvdl8UehwzGP1x3L6u1eJ0A7j6/bJIAnz7UtlZQTqVzOEjHsl0nqkaObc1go9vW15+nibLXrqYOQO5NxhwHwLKsjldawDOE9PwUMQ2SW+/yw2KPi8EHkXLlHi+A6n6bavZ3fOMgbqLK1DxFQ34o+5RuzEyuq3dEWkHUZI19IexeKgojrNlzOIP31CPiyjlajnTt2wv3KI7PhDojDLnXFjbzvZ6xy61RGxwo21d1f54xbCrUGIP/rQkH8qNvWAgM3PgCt3uvoCstx2poZWW2UHKCVKqTSsUKU5u00JOmMeYkVtyvnJ/g9/f7uimM5lkEBcqm13JsXb3a4Eu5hI0WEfXrshtABEWAJvgYkUOPqj1iCXSZSZ3a0Qa08+ik2BJy8AovfW4yghaGN0DqmEpBTaGBLBUyAHWvteoWKRfgBZzidL8pknzEGSbSsSZct1RS0uw/7z7pnIPDU+iodtZ/7z9d6+ffTlQ0o+TNvEcuSzXiBT2V1nmMOWjA207p/rlJ7ylqY1qh4guBYGcZc5/xTTgc1K4LTz+xgB9/sRw3BY8+FSEy6TdW+HTExUtUxzscBY0ZnHNWikwjD0DSwA7MMiryLH4I78rjH33XqI8Z9ym3G1LU6j1U4WMdPNGumhrJh+AjJAY7GjVmZm7iweasCwSHN6TTL8W3bnkxWXhR9QO36XHQbZ0LTtpyt5E3dTruqCL0PLw1KxoiPJrYcLpXMhE9FDNzqOc7YbnP5z0K5HxXO7bqNdoznak0Q0GPUAw4ZkFZA02yBMF10LCqs5kbfCjBhD1/pJwvG/PNi4jvvREIu00eAYkAk07uz9hEPiPq0TPIPmL0NpCoqq3N5EEvrjIGeMMaJuwc0JPYUWtg6+loSkDuB7wE=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hello,


it seems that PSPNG is more a breadth-first sort of provider, where 

> it'll provision empty groups first then come back and add members 


Yes, by default, PSPNG does create groups and then fills them with their members later. Setting a "...supportsEmptyGroups=false" property will force PSPNG to not violate member-requiring schemas by not pre-creating groups and by deleting them when they would become empty again.



--Bert





From: <> on behalf of Jeffrey Williams <>
Sent: Wednesday, December 6, 2017 9:11 AM
To: Mark Cairney
Cc:
Subject: Re: [grouper-users] Initial teething problems with PSPNG
 
I'm currently cutting my teeth on PSPNG as well, so you're not alone!

This particular line is of interest to me:
errorMessage='object class 'groupOfNames' requires attribute
'member'', diagnosticMessage='object class 'groupOfNames' requires
attribute 'member'')

From my limited observation, it seems that PSPNG is more a breadth-first sort of provider, where it'll provision empty groups first then come back and add members as an update(someone call me out on this if I'm wrong).  If your groupOfNames requires member values up front, that may pose a problem.  If you set your member attribute to me optional in groupOfNames and rerun PSPNG, does the issue re-occur?





On Wed, Dec 6, 2017 at 6:55 AM, Mark Cairney <> wrote:
Hi,

After my rather hasty email yesterday I've made a little bit of progress
and now have PSPNG connecting to LDAP. It's currently failign to
add/modify groups due to lack of members:

2017-12-06 11:34:00,182: [DefaultQuartzScheduler_Worker-3] ERROR
GrouperLoaderJob.runJob(485) -  - Error on job:
CHANGE_LOG_consumer_pspng_cauth
java.lang.RuntimeException: Error in loader job: null, check logs:
Error: java.lang.RuntimeException: No entries provisioned. Batch-Start
failed: LDAP problem creating object: LDAPException(resultCode=65
(object class violation), errorMessage='object class 'groupOfNames'
requires attribute 'member'', diagnosticMessage='object class
'groupOfNames' requires attribute 'member'')
        at
edu.internet2.middleware.grouper.pspng.Provisioner.provisionBatchOfItems(Provisioner.java:1020)
        at
edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim.processChangeLogEntries(PspChangelogConsumerShim.java:71)
        at
edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords(ChangeLogHelper.java:245)
        at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$5.runJob(GrouperLoaderType.java:720)
        at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:465)
        at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:345)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: edu.internet2.middleware.grouper.pspng.PspException: LDAP
problem creating object: LDAPException(resultCode=65 (object class
violation), errorMessage='object class 'groupOfNames' requires attribute
'member'', diagnosticMessage='object class 'groupOfNames' requires
attribute 'member'')
        at
edu.internet2.middleware.grouper.pspng.LdapProvisioner.performLdapAdd(LdapProvisioner.java:254)
        at
edu.internet2.middleware.grouper.pspng.LdapGroupProvisioner.createGroup(LdapGroupProvisioner.java:226)
        at
edu.internet2.middleware.grouper.pspng.LdapGroupProvisioner.createGroup(LdapGroupProvisioner.java:54)
        at
edu.internet2.middleware.grouper.pspng.Provisioner.prepareGroupCache(Provisioner.java:581)
        at
edu.internet2.middleware.grouper.pspng.Provisioner.startProvisioningBatch(Provisioner.java:356)
        at
edu.internet2.middleware.grouper.pspng.Provisioner.provisionBatchOfItems(Provisioner.java:1015)
        ... 7 more



And on the LDAP side the error is:

dn="cn=adhoc:MCTest:Mark 1,cn=Mark
1,ou=MCTest,ou=adhoc,ou=grouper2,dc=authorise-dev,dc=ed,dc=ac,dc=uk"
Dec  6 11:45:00 bonsai slapd[34260]: Entry (cn=adhoc:MCTest:Mark
1,cn=Mark
1,ou=MCTest,ou=adhoc,ou=grouper2,dc=authorise-dev,dc=ed,dc=ac,dc=uk):
object class 'groupOfNames' requires attribute 'member'


1. As provisioned by PSP the DN of the group is:
cn=Mark
1,ou=MCTest,ou=adhoc,ou=grouper2,dc=authorise-dev,dc=ed,dc=ac,dc=uk" so
this should actually be a modify rather than an add.

My PSPNG currently contains the line:
dn: cn=${group.name},${utils.bushyDn(group.name, "cn", "ou")}||cn:
${group.name}||objectclass: posixGroup||objectclass:
groupOfNames||gidNumber: ${group.idIndex}

How should this be modified to replicate the previous behaviour for the DN?

2. I've got the following in my grouper-loader.properties:
changeLog.consumer.pspng_cauth.memberAttributeName = member
changeLog.consumer.pspng_cauth.memberAttributeValueFormat =
${ldapUser.getDn()}

However I don't see any attempts at looking up users in LDAP, only the
group. Also is there a way to define a "placeholder" member for empty
groups? How does PSPNG resolve grouper members with LDAP/AD users?

Sorry for all the questions- I'm sure there  will be more though once I
get over this particular speed-bump!


--
/****************************

Mark Cairney
ITI Enterprise Services
Information Services
University of Edinburgh

Tel: 0131 650 6565
Email:
PGP: 0x435A9621

*******************************/

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



--
Jeffrey Williams, Identity Management Specialist
Identity Architecture, ITS
University of North Carolina at Greensboro
256-TECH (256-8324)



Archive powered by MHonArc 2.6.19.

Top of Page