Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] More PSP-NG: custom user attributes in userSearchFilter

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] More PSP-NG: custom user attributes in userSearchFilter


Chronological Thread 
  • From: "Gettes, Michael" <>
  • To: Paul Engle <>
  • Cc: "" <>, "" <>
  • Subject: Re: [grouper-users] More PSP-NG: custom user attributes in userSearchFilter
  • Date: Mon, 4 Jun 2018 21:46:39 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:PYCZIBBfwzRwQvp/zmfNUyQJP3N1i/DPJgcQr6AfoPdwSPX7o8bcNUDSrc9gkEXOFd2Cra4c1qyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhDexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRsZfWTJcDIOgYYUBDOQBMuRfoYn8u1QBogCzChOwCOPq0DJIhmP60K883u88EQ/GxgsgH9cWvXjardv6KrsSUfyrw6nT1TnIcvRY2Tbh54jIaB8uv/WMUbxtesfWxkkgCR/FjkmOpoz+JD6Vy+oNs2yB4+V+SO2vlncqpgdsqTahwccsj5PGhoMTyl3c7SV52oE1Jdq2SE5jZt6kEZ1Qtz2AO4RqRcMiRnlkuCYmyr0aoZ63ZSYHx44/yBHHcPyHbpOH4hD9W+mNPTd0nnNld6+5ih2v8kag0vXxWtSq3FtJtCZJjMfAu3IX2xHR5cWLUOVx80eu1DqXygzf9vtILE41mKbBNpIsxr09moAOvUnMBiP2llv5gayKekgh/+Wl6ODqbqn6qZKZK4B7kRvxP6Qrl8ChA+k3KRYCUm2G9uunyrHu/0v0S6hQgPIsiKnWqpXaKNwbpqGnBw9V1Z4u6w26Dze6yNQUh2QHLFxBeB6dkYfmJkzOLOj5Dfe5nVusjC9my+3YMrDiGJnBMGbPnbX7cbt/5ENQ0hQ/wNBQ6p5MD7EOOvPzWkv/tNzCCR85NhS5w+n5B9VhyoMRR3mPD7SEMKPctV+E/PwgLPSRZIMNojbyN+Al5+LyjX8+gVIdcrOp3ZwKaHCgAPtmOVyVYWf3gtgfC2cKpREzTOjriF2ZTT5TfGi+U7g95jE9FIKpE53DRoazj7ydwiu3BINZaX1bCgPELXC9T4yZX78hbi2WL4c1ijECWrysY5Ug3hzouQPnnelJNO3Rr2c3uI7/2cMxr8jSnhE7+Dg+R5CS3n2RQnpcg20MATI6wfYs8gRG1l6f3P0g0LRjHttJ6qYMC19iOA==

+1 - this is part of where the documentation is lacking a little bit and what led to the questions I had about JEXL in grouper and how it is used.

/mrg

On Jun 4, 2018, at 5:16 PM, Paul Engle <> wrote:

Erik,
  Is this in an LdapGroupProvisioner or an LdapAttributeProvisioner? In the group provisioner, anytime I've needed something from the user entry, I've referenced it as ${ldapUser.getStringValue('foo')}.  I've only used the ${subject} reference in the attribute provisioner. I don't know if that makes a difference or not, or under what contexts each of those objects is available.

  -paul
 
-- 
Paul Engle
Office of Information Technology
713-348-4702


On Mon, Jun 4, 2018 at 3:44 PM Coleman, Erik C <> wrote:

Hello,

 

As a follow-up to my two subject sources scenario, I’m having trouble with custom subject attributes. I now have PSP-NG turned on, and it successfully syncs groups that are set with the provision_to attribute, but when it comes time to add members, I’m getting this error in the logs:

 

grouper-api;grouper_error.log;2018-06-04 19:36:59,091: [uofi_urbana-FullSync-Thread] ERROR Provisioner.evaluateJexlExpression(556) - - Jexl _expression_ samAccountName=${subject.getAttributeValue("samAccountName")} could not be evaluated for subject ''650000001'/'person'/'uofinetid'/null' and group 'null/null' which used variableMap '{userSearchBaseDn=ou=people,dc=ad,dc=uillinois,dc=edu, provisionerType=LdapGroupProvisioner, groupCreationBaseDn=ou=AuthMan,ou=CITES-Services,ou=CITES,ou=Urbana,dc=ad,dc=uillinois,dc=edu, utils=edu.internet2.middleware.grouper.pspng.PspJexlUtils@4f7f3b36, subject='650000001'/'person'/'uofinetid', provisionerName=uofi_urbana, groupSearchBaseDn=ou=AuthMan,ou=CITES-Services,ou=CITES,ou=Urbana,dc=ad,dc=uillinois,dc=edu}'

 

Here’s what I have set in grouper-loader.properties:

 

changeLog.consumer.uofi_urbana.userSearchFilter = samAccountName=${subject.getAttributeValue("samAccountName")}

 

This used to work in our older “pre-TIER” test environment. I’ve considered alternatives:

 

samAccountName=${subject.id}  -- won’t work because we specify subject id using our own uiucEduUIN attribute as specified in the subject.properties.

 

uiucEduUIN=${subject.id} – won’t work because one of my subject sources doesn’t use uiucEduUIN for subject id, it uses samAccountName.

 

Switching to use samAccountName for subject id won’t work, because we have too many people changing netids quite often.

 

A look at my personal subject record in Grouper appears to have everything it’s trying to evaluate:

 

Unique ID:

650000001

 

Name:

Coleman, Erik C

 

Description:

Coleman, Erik C

 

uiuceduuin:        650000001

dn:        CN=ecc,ou=People,dc=ad,dc=uillinois,dc=edu

displayname:     Coleman, Erik C

department:      Technology Services

distinguishedname:              CN=ecc,OU=People,DC=ad,DC=uillinois,DC=edu

samaccountname:          ecc

Member ID:       6fe2e751a0e14e41b896ee6cb8e23e02

Source ID:          uofinetid

Source name:    UOFI AD People

 

Why is the JEXL _expression_ getting an error? What’s the right JEXL syntax for referencing a “custom” attribute in a subject?

 

Thanks!

 

Erik Coleman

University of Illinois at Urbana-Champaign

 

 





Archive powered by MHonArc 2.6.19.

Top of Page