<div dir="ltr">Thanks Dave, for the suggestion.<div>I used the template something like this and it worked.</div><div>Anyways i will try out this way too, as i have hardcoded the domain name (<a href="http://example.com">example.com</a>) in the template.</div><div><br></div><div><div><resolver:AttributeDefinition id="userPrincipalName" xsi:type="ad:Template"></div><div><span class="" style="white-space:pre">          </span><resolver:Dependency ref="uid" /></div><div>        <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="userPrincipalName" encodeType="false" /></div><div>        <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="userPrincipalName" friendlyName="userPrincipalName" encodeType="false" /></div><div><span class="" style="white-space:pre">         </span><ad:Template></div><div>          <![CDATA[</div><div>               ${<a href="mailto:uid%7D@example.com">uid}@example.com</a></div><div>          ]]></div><div>        </ad:Template></div><div>        <ad:SourceAttribute>uid</ad:SourceAttribute></div><div>    </resolver:AttributeDefinition></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 14, 2016 at 3:07 PM, Dave Perry <span dir="ltr"><<a href="mailto:Dave.Perry@hull-college.ac.uk" target="_blank">Dave.Perry@hull-college.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Couldn't you used a scoped attribute too? E.g. (attribute-resover.xml)<br>
    <resolver:AttributeDefinition xsi:type="ad:Scoped" id="domain_user" scope="domain.ext" sourceAttributeID="sAMAccountName"><br>
        <resolver:Dependency ref="myLDAP" /><br>
    </resolver:AttributeDefinition><br>
(this would send 'adusername@domain.ext' as the attribute value for attribute domain_user)<br>
<br>
HTH,<br>
Dave<br>
_________________________________________________<br>
Dave Perry<br>
eLearning Technologist, Hull College Group<br>
<br>
Room L34 - Queens Gardens Library<br>
Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG<br>
Extension 2230 / Direct Dial 01482 381930<br>
<br>
* Need a fast reply? Try <a href="mailto:elearning@hull-college.ac.uk">elearning@hull-college.ac.uk</a> *<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: users [mailto:<a href="mailto:users-bounces@shibboleth.net">users-bounces@shibboleth.net</a>] On Behalf Of Tom Zeller<br>
Sent: 12 July 2016 20:09<br>
To: Shib Users<br>
Subject: Re: Need userPrincipalName attribute with the domain format<br>
<br>
<br>
> On Jul 12, 2016, at 12:17 PM, Muthuraman Sethuraman Sethuraman (US - Advisory) <<a href="mailto:muthuraman.sethuraman@pwc.com">muthuraman.sethuraman@pwc.com</a>> wrote:<br>
><br>
> My Shibboleth IDP 3.2.1 is retrieving the userPrincipalName attribute value from AD without the domain name like <a href="mailto:user1@example.com">user1@example.com</a>.<br>
> Instead its retrieving it as 'user1'<br>
><br>
> Please let me know if there is a way to configure in my idp  to return the userPrincipalName with the domain name, as my Citrix Netscaler SP is expecting it in that format.<br>
<br>
Probably either the template[1] or script[2] attribute definition.<br>
<br>
[1] <a href="https://wiki.shibboleth.net/confluence/display/IDP30/TemplateAttributeDefinition" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/display/IDP30/TemplateAttributeDefinition</a><br>
[2] <a href="https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition</a><br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
<br>
</div></div>**********************************************************************<br>
This message is sent in confidence for the addressee<br>
only. It may  contain confidential or sensitive<br>
information.  The contents are not to be disclosed<br>
to anyone other than the addressee.  Unauthorised<br>
recipients are requested to preserve this<br>
confidentiality and to advise us of any errors in<br>
transmission.  Any views expressed in this message<br>
are solely the views of the individual and do not<br>
represent the views of the College.  Nothing in this<br>
message should be construed as creating a contract.<br>
<br>
Hull College Group owns the email infrastructure, including the contents.<br>
<br>
Hull College Group is committed to sustainability, please reflect before printing this email.<br>
**********************************************************************<br>
<br>
TEXT<br>
<div class=""><div class="h5">--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Muthuraman S</b><div><span style="font-size:12.8px">PwC | SDC Manager | IdAM</span></div><div><div style="font-size:12.8px">Office: <a href="tel:%2B1%20404-838-4445" value="+14046021223" style="color:rgb(17,85,204)" target="_blank">+1 404-838-4445</a> | Mobile: <a href="tel:%2B91-9886302072" value="+919845127625" style="color:rgb(17,85,204)" target="_blank">+91-9886302072</a></div><div style="font-size:12.8px">Email: <a href="mailto:muthuraman.sethuraman@pwc.com" style="color:rgb(17,85,204)" target="_blank">muthuraman.sethuraman@pwc.com</a></div><div style="font-size:12.8px">PricewaterhouseCoopers LLP</div><div style="font-size:12.8px">EGL Business Park, Bengaluru, India</div><div style="font-size:12.8px"><span style="font-size:12.8px"><a href="http://www.pwc.com/us" style="color:rgb(17,85,204)" target="_blank">http://www.pwc.com/us</a></span></div></div></div></div></div></div></div></div></div></div>
</div></div></div>

<HR>The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership.  This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries.<BR>