generating scoped attributes in ad:Script
Cantor, Scott
cantor.2 at osu.edu
Thu Feb 21 20:49:01 EST 2013
On 2/21/13 8:42 PM, "Peter Schober" <peter.schober at univie.ac.at> wrote:
>
>I may be doing it wrong:
>
> var eduPersonPrincipalName = new
>BasicAttribute("eduPersonPrincipalName");
> var Scope = new ScopedAttributeValue();
> eduPersonPrincipalName.getValues().add(Scope);
> eduPersonPrincipalName.getValues().add(uid.getValues().get(0) + '@' +
>scope);
>
>Causes:
>sun.org.mozilla.javascript.EvaluatorException: Java constructor for
>"edu.internet2.middleware.shibboleth.common.attribute.provider.ScopedAttri
>buteValue"
>with arguments "" not found.
The constructor looks like:
public ScopedAttributeValue(String attributeValue, String valueScope)
So, something like:
var Scope = new ScopedAttributeValue(uid.getValues().get(0), scope);
eduPersonPrincipalName.getValues().add(Scope);
-- Scott
More information about the users
mailing list