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: Paul Engle <>
  • To:
  • Cc:
  • Subject: Re: [grouper-users] More PSP-NG: custom user attributes in userSearchFilter
  • Date: Mon, 4 Jun 2018 16:16:32 -0500
  • Ironport-phdr: 9a23:Fv4nKxAJijwM41wdZTlvUyQJP3N1i/DPJgcQr6AfoPdwSPv9pMbcNUDSrc9gkEXOFd2Cra4c1qyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhDexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoIODA5/2PXhMJ+j6xVvQyvqABkzoHOfI2YLuBzcr/Bcd4YQ2dKQ8ZfVzZGAoO5d4YBFfAOPftcr4LgqFUOqxS+BQ2yC+jyzTJInmH53as10+QlDw7LxxYgH9MSv3vKttn6KrodUf2swaTO0D7NYfRW2TLn54jJdBAsueqMXa9rfsrT10YgCx/Fgk+RqYP4OT6ey+cDs3CD4uZ+VO+jl2wqpgR/ojWs3cgglozEi40JxlzY6Sp0xZo6KcG4RUN+ZNOoDoVcuDqcOoBrWM0tWXtotzw/yrAeuZ60YiwKyJM/yh7acfOHcoyI7gv9VOaSPTt0nX1kdKyhixmp60Sgxer8Vs670FZOsCVJiMXDtncI1xDL68iHTOVy/lu51DqR1g3f9uNJLEU6lafYMJEt3rs9m5UPvUjfAiD7nVn5gLOWe0gh/+Wk9frrba7+qp+ZLYB0iwX+Mqo0msy4BOQ1KhAOUHad+eSz0L3s41b0QK9LjvIqjKbVqo7VKtkGpqKhGQ9azp4j6wqjDzehyNkYkmMHLFVYeBKfkYfpIUjCIO3jDfihmVSsiyxmx/THPr36HpXNNWbPnK3gfbZ7905T1hAzzdZB6JJIFL0NOuz8VVLstI+QMhhsPge/6+fjDNR70YIFH2+DH/y3KqTX5GeB++ZnDu+DYIJd7C7wLfch6tb0jHQ031IRYP/6jtMsdHmkE6E+cA2ian32j4JZHA==

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