grouper-users - [grouper-users] ldap subject source issue
Subject: Grouper Users - Open Discussion List
List archive
- From: "pchantry" <>
- To:
- Subject: [grouper-users] ldap subject source issue
- Date: Wed, 26 Jan 2022 10:00:41 +0000
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
- [grouper-users] ldap subject source issue, pchantry, 01/26/2022
- Re: [grouper-users] ldap subject source issue, Hyzer, Chris, 01/26/2022
- Re: [grouper-users] ldap subject source issue, Philippe CHANTRY, 01/26/2022
- Re: [grouper-users] ldap subject source issue, Hyzer, Chris, 01/26/2022
Archive powered by MHonArc 2.6.24.