assigning eduperson based on memberof

Morris, Andi amorris at cardiffmet.ac.uk
Fri Jul 12 05:18:25 EDT 2013


It's more the other way around, our library want members of our Student Union to have the value 'member', but not 'staff' or 'student'. Our student union staff are getting the both values at the moment.

-----Original Message-----
From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Ortner Nikolaus
Sent: 12 July 2013 10:16
To: 'Shib Users'
Subject: Re: assigning eduperson based on memberof

> > 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'.

I don't get it - why is it a problem having a "STUDENT" with both values, 'student' and 'member'?

Maybe something like this?
if( ... ) // STUDENT?
	eduPersonAffiliation.getValues().add("student");
if( ... ) // STU? && eduPersonAffiliation.getValues().size() == 0
               eduPersonAffiliation.getValues().add("member");

Kind regards.
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list