Assigning edupersonaffiliation attribute with AD
Morris, Andi
amorris at cardiffmet.ac.uk
Tue Apr 30 09:48:53 EDT 2013
Hi all,
How do you all assign the eduPersonAffiliation attribute to your users? Currently we use the following script to assign it based on Organisational Unit, but this is starting to prove too limiting as we have users within the same OUs that I'd like to assign different edupersonaffiliation attributes to.
importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
eduPersonAffiliation = new BasicAttribute("eduPersonAffiliation");
dn = distinguishedName.getValues().get(0).toLowerCase();
if (dn.contains("ou=student")) {
eduPersonAffiliation.getValues().add("student");
Is there a similar way to script this to go on maybe Security Group membership, or do I need to start looking into adding an extra AD attribute into the user properties, and trying to pull the information out from there?
Cheers,
Andi
________________________
Andi Morris
IT Security Officer
Cardiff Metropolitan University
TEL: 029 20 205720
________________________
________________________________
>From 1st November 2011 UWIC changed its title to Cardiff Metropolitan University. From the 6th December 2011, as part of this change, all email addresses which included @uwic.ac.uk have changed to @cardiffmet.ac.uk. All emails sent from Cardiff Metropolitan University will now be sent from the new @cardiffmet.ac.uk address. Please could you ensure that all of your contact records and databases are updated to reflect this change. Further information can be found on the website here.<http://www3.uwic.ac.uk/English/News/Pages/UWIC-Name-Change.aspx>
Ar Dachwedd y 1af 2011 newidiodd UWIC ei henw i Brifysgol Fetropolitan Caerdydd. O Ragfyr 6ed, fel rhan o'r newid yma, bydd pob cyfeiriad e-bost sy'n cynnwys @uwic.ac.uk yn newid i @cardiffmet.ac.uk. Bydd yr holl ebyst a ddanfonir o Brifysgol Fetropolitan Caerdydd yn cael eu danfon o'r cyfeiriad @cardiffmet.ac.uk newydd. Gwnewch yn siwr eich bod yn diweddaru eich cofnodion cyswllt a'ch cronfeydd data i adlewyrchu hyn. Gellir cael rhagor o wybodaeth ar y wefan yma.<http://www3.uwic.ac.uk/English/News/Pages/UWIC-Name-Change.aspx>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20130430/e3f587c0/attachment.html
More information about the users
mailing list