<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Apologies for my ignorance but I have taken over our Shibb IdP from a former long standing colleague.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I require help regarding the above. I have the following script in attribute-resolver.xml where the SP's only requirement is mail. However our users can change their mail prefix so we want to release the scoped sAMAccoutName instead.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<AttributeDefinition id="mail" xsi:type="ScriptedAttribute">
<div>        <!-- We need LDAP for this attributes value --></div>
<div>        <InputDataConnector ref="uos_ldap" attributeNames="mail sAMAccountName" /></div>
<div><br>
</div>
<div>        <!-- The script --></div>
<div>        <Script><![CDATA[</div>
<div>            // Get the requester entity ID</div>
<div>            requester = resolutionContext.getAttributeRecipientID();</div>
<div>                </div>
<div>            // for research connect we want username@soton.ac.uk as mail</div>
<div>            if (requester.equalsIgnoreCase("https://sp.idoxgroup.com/shibboleth"))</div>
<div>            { </div>
<div>                mail.addValue(sAMAccountName.getValues().get(0) + "@%{idp.scope}");</div>
<div>            }</div>
<div>            else</div>
<div>            {</div>
<div>                // By default, resolve this to mail in LDAP</div>
<div>                mail = mail.getValues().get(0);</div>
<div>            }</div>
<div>        ]]></Script></div>
<span>    </AttributeDefinition></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I do this I get duplicate mail attributes released, is there a straightforward way to get around this?<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px; margin-bottom:0px; margin-top:0; margin-bottom:0"></p>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt; color:rgb(0,0,0)">Thanks</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<span style="color:rgb(0,0,0)"></span><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt; color:rgb(0,0,0)">Nilan</span><span style="font-size:10pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt">----</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt"><b>Nilan Morjaria-Patel</b></span></font><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt"> |
 Infrastructure Engineer | Enterprise Systems Management | iSolutions</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt">University of Southampton</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt">Level 5, One Guildhall Square, Southampton, SO14 7FP</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt"> </span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><a href="mailto:n.morjaria-patel@soton.ac.uk" target="_blank" rel="noopener noreferrer"><font size="2" face="Trebuchet MS,sans-serif"><span style="font-size:10pt">n.morjaria-patel@soton.ac.uk</span></font></a><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt"> |
 +44 2380 595680 | ext 25680</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt"> </span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif" color="gray"><span style="font-size:10pt">Manage your IT tickets and requests at: </span></font><a href="http://www.southampton.ac.uk/ithelp" target="_blank" rel="noopener noreferrer"><font size="2" face="Trebuchet MS,sans-serif"><span style="font-size:10pt"><font color="blue"></font></span></font></a><font size="2" face="Trebuchet MS,sans-serif"><font color="blue"><a href="https://sotonproduction.service-now.com/soton/it.do" class="OWAAutoLink">https://sotonproduction.service-now.com/soton/it.do</a></font></font></span></font></div>
<br>
<p style="margin-top:0px; margin-bottom:0px"></p>
</div>
</div>
</div>
</div>
</body>
</html>