<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
</head>
<body>
<div dir="ltr">
<div></div>
<div>
<div>
<div dir="ltr"><span id="ms-outlook-ios-cursor"></span>I am at a similar point, but getting c14n/attribute population errors - so LDAP lookups don't work.</div>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Currently working on it with the UK Federation.</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
Sent from <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> users <users-bounces@shibboleth.net> on behalf of ιΧΑΚΜΟ ιΗΞΑΤΟΧ via users <users@shibboleth.net><br>
<b>Sent:</b> Sunday, April 30, 2023 7:58:24 AM<br>
<b>To:</b> users@shibboleth.net <users@shibboleth.net><br>
<b>Cc:</b> ιΧΑΚΜΟ ιΗΞΑΤΟΧ <mm3@abv.bg><br>
<b>Subject:</b> Get variable from Azure</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Caution: Please take care when clicking on links or opening attachments in emails that originate from outside of the university. When in doubt, contact the ITS service desk.<br>
<br>
<br>
Hello,<br>
I setup Shibboleth IdP 4.3.1 as Azure proxy and it work fine.I want, after user login with his/her Azure credentials, to search in local LDAP for this user, but using Azure UUID.<br>
In attribute-resolver.xml I try this:<br>
<br>
<DataConnector id="myLDAP" xsi:type="LDAPDirectory" ...<br>
    <ReturnAttributes>* +</ReturnAttributes><br>
    <InputAttributeDefinition ref="schacSn2" /><br>
<br>
    <FilterTemplate><br>
        <![CDATA[<br>
                uid=$resolutionContext.principal<br>
        ]]><br>
    </FilterTemplate><br>
...<br>
</DataConnector><br>
<br>
(Works, but search for user principal name)<br>
Just for sample, this works too:<br>
<br>
<![CDATA[       entryUUID=3d746326-7256-103d-9366-6beb72b64c1c]]><br>
<br>
I can see corect Azure UUID (with schacSn2, 1.3.6.1.4.1.25178.1.2.7) and entryUUID values in SP after login. The additional information I get from LDAP is also visible in the above examples.<br>
<br>
In FilterTemplate, this gives an error or returns an empty value:<br>
<br>
entryUUID=$schacSn2entryUUID=$schacSn2.get(0)entryUUID=$schacSn2.getValues().get(0)<br>
How to set up FilterTemplate to get Azure UUID and search in LDAP ?<br>
Thank you!<br>
--<br>
For Consortium Member technical support, see <a href="https://shibboleth.atlassian.net/wiki/x/ZYEpPw">
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fshibboleth.atlassian.net%2Fwiki%2Fx%2FZYEpPw&data=05%7C01%7Cd.perry1%40yorksj.ac.uk%7C534a41c727d84a59031308db4948597e%7C5c8ae38ef85b4309b7ec862815a37aee%7C0%7C0%7C638184347304631175%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T22KjwIjP8mB6On0LW4%2BRXgzEmtzp6DEpfTuFhHe3Mw%3D&reserved=0</a><br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<br>
</div>
</span></font></div>
</body>
</html>