IdP encoding error
Peter Schober
peter.schober at univie.ac.at
Tue Feb 5 02:41:34 EST 2013
* David Bantz <dabantz at alaska.edu> [2013-02-05 00:05]:
> if (typeof uasystemid != "undefined" && uasystemid != null && uasystemid.getValues().size() != 0){
> logger.debug("EDIR LDAP Values: " + uasystemid.getValues());
> for ( i = 0; i < uasystemid.getValues().size(); i++ ){
> value = uasystemid.getValues().get(i);
> eduPersonPrincipalName.getValues().add(new ScopedAttributeValue(value, "alaska.edu"));
> }
> }
> else {
> if (typeof uaadsystemid != "undefined" && uaadsystemid != null && uaadsystemid.getValues().size() != 0){
> logger.debug("AD LDAP Values: " + uaadsystemid.getValues());
> for ( i = 0; i < uaadsystemid.getValues().size(); i++ ){
> value = uaadsystemid.getValues().get(i);
> eduPersonPrincipalName.getValues().add(new ScopedAttributeValue(value, "alaska.edu"));
> }
> }
> }
Also note that most systems using ePPN probably won't be too happy
seeing more than a single value for it (and the definition in the
eduPerson schema is "single-value"). Just in case those loops are
there because uasystemid or uaadsystemid might have more than one
value.
-peter
More information about the users
mailing list