assigning eduperson based on memberof

Morris, Andi amorris at cardiffmet.ac.uk
Thu Jul 11 11:17:01 EDT 2013


Hi all,
We currently assign eduPersonAffiliation depending on Active Directory group membership, but there is a bit of a crossover with two of our groups starting with the same string.
Users that are members of the group "STUDENT" get added the 'student' value added to the eduPersonAffiliation attribute just fine, but members of the group "STU" are members of our student union and need to be given the value 'member', except that they are being given 'student'.

The code I'm using to get this is:
"                if (value.contains("student")) {
                    eduPersonAffiliation.getValues().add("student");
"

I've tried changing value.contains to value.equals, but this just ends up with neither group being assigned a value for this attribute.

Can anybody please help with this scripting query? Apologies that it's not strictly a shibboleth issue.

Cheers,
Andi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20130711/26c0ff90/attachment-0001.html 


More information about the users mailing list