accessing user principal in scripted attributes

Cantor, Scott cantor.2 at osu.edu
Fri Jun 12 10:35:55 EDT 2015


On 6/12/15, 10:08 AM, "users on behalf of Liam Hoekenga" <users-bounces at shibboleth.net on behalf of liamr at umich.edu> wrote:

>net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)
>Caused by: javax.script.ScriptException: TypeError: Cannot get property "principalName" of null in <eval> at line number 11

That seems like something more serious is wrong, that should be populated, as should resolutionContext.

>The docs mention a number of contexts that are available as variables.  I assumed that meant they'd be available without available without .getSubcontext(). 

They are (except for the profileRequestContext, that was a bug).

Unless there's something in the log, I'd have to defer to Rod. I don't see what could possibly cause that.

-- Scott



More information about the users mailing list