Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] ldap subject source issue

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] ldap subject source issue


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: "" <>, pchantry <>
  • Subject: Re: [grouper-users] ldap subject source issue
  • Date: Wed, 26 Jan 2022 17:14:24 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qcyZ2MAEU0mwzRmk7FWfqxCxjhdUaDCr6JDpptpr4KA=; b=GRNBHtRO1O5BMotNzSIDAnp8DmKbUStfTQo1Lz3YRzxGeDk3uKA1lhpMlEPHyTRVxvwC6VgvGA/cv1Ruyc8RgkrH2DzjPqFW6RRi/H1eUHdnfMywSSRALkkpccrZO5T+PCBhYmmqp9jTqcI7KJx1+KvUKPbbwKfzxv1nmQn7BrQiORNgMUPi6MWPs95Vofu4gvoc3fA7O7z+SNpIgEQ6rLdbhs8fl3t2Yve3chuDBK4LDofOnVKr4HIPqo8uRZ44WID7stCoUGpXcL0gNhqnVfNAEOR7EUrKcmDmBIziqTuZocRhr7l6QjWIXgcquwAIkHNdA5x1DQcBI6QjPYa2vg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d3iJ5SFsGpYGl2Veu+VI8mmi8nMhumHrWZA+XIsf+pvBPiYoBoIpu/x9NlxwtSRcc8MjWqdhpzcjyYt2AflXAa1jaDhetpNzmUPBu7abSgQgqZSLuBAYFX161kG4uPySL1AKYqJHRlmxCXMgsj160TXTWQ95B/Nxwtk6RSDzSaNf0rSDCJYeDfCsUCa+ZiQrr7rqUYm1xJ/Z2uZi5HpLU4pDz92fKkRqz8UbZz9raavLs/sD2zxKPTrJhKIXWua3uxkKyPqd4D0iuSE6pg+iU8xpn+4piG/qbrE1MQASsfMiJSJPP6ETThyyu3NrRYmoADFFSLJ+wpzIhYqWgkTOIA==
  • Suggested_attachment_session_id: dce9672d-23b1-56af-8457-74d9380e0774

You will get better support on slack instead of email FYI.

Can you send your exported subject source config (you can export from UI under configuration).

Are any of your data values null?  Maybe that is an issue?  I tried a similar thing and it worked fine

Translation for my_description: ${subject_attribute__my_new_id + ' (' +source_attribute__name + ') - ' + source_attribute__entity_id + ' - ' + source_attribute__my_id}



From: <> on behalf of pchantry <>
Sent: Wednesday, January 26, 2022 5:00 AM
To: <>
Subject: [grouper-users] ldap subject source issue
 
Hello,

I just installed grouper 2.5.59.3 and defined a Ldap subject source through UI
> Miscellaneous > Subject sources > Add subject source.

All is fine except the setting of one attribute with "translation type" =
translation. The translation script is not recognized. I tried different
values, and I got some errors when I run the diagnostics tool :
- script value = ${subject_attribute__cn + ' (' +source_attribute__uid + ') -
' + source_attribute__edupersonprimaryaffiliation}
- error in diagnostics :
ERROR: Exception thrown when finding subject by id in 33ms: 'glagaffe'
         with SubjectFinder.findByIdAndSource("my_uid", "ldap", false)
java.lang.RuntimeException: Error substituting string: '() -'
...
Caused by: java.lang.RuntimeException: Script must be ${script}: '() -'

- script value = ${subject_attribute__mail}
- diagnostics : no error, but says : Subject attribute 'namewithstatus' has 1
value: ''  (i.e. the value is unexpectedly empty)

In our previous Grouper instance, 2.3, we had defined this attribute in
grouper.apiBinary-2.3.0/conf/sources.xml like this:
     <init-param>
      <param-name>subjectVirtualAttribute_0_nameWithStatus</param-name>
      <param-value>$
{subjectUtils.defaultIfBlank(subject.getAttributeValueOrCommaSeparated('sn').toUpperCase(),
"")}, $
{subjectUtils.defaultIfBlank(subject.getAttributeValueOrCommaSeparated('givenName'),
"")} ${subject.getAttributeValueOrCommaSeparated('eduPersonAffiliation') ==
null ? "" :
subjectUtils.defaultIfBlank('('+subject.getAttributeValueOrCommaSeparated('eduPersonAffiliation').toLowerCase()
+')', "")}</param-value>
    </init-param>

So my question is : how to set up such a parameter in Grouper 2.5 ?

Thank you,
Philippe



Archive powered by MHonArc 2.6.24.

Top of Page