Reference Error for attribute coming with empty value from LDAP Data connector
Peter Schober
peter.schober at univie.ac.at
Tue Jan 14 12:07:03 UTC 2025
S, Kalidasan via users <users at shibboleth.net> [2025-01-10 16:01 CET]:
> If the attribute coming from LDAP Dataconnector is having data
> populated, our custom script is not throwing any reference error but
> during times the attribute is flowing with empty value from data
> connector, we are getting "ReferenceError: "departmentnumber" is not
> defined in nashorn:mozilla_compat.js at line number 69" when our
> script try to get values using .getValues() method and Shibboleth is
> unable to determine the identity and login fails.
Seems your script needs some error handling, then?
if (typeof departmentnumber == "undefined") {
// handle error, log at DEBUG, etc.
} else {
// now calling .getValues() should work
}
Or something like that.
HTH,
-peter
More information about the users
mailing list