<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
I have 2 separate LDAP repositories that are attached to the Shibboleth 4.3 idp. I get the attributes back from the 1<span class="ContentPasted6"><sup>st</sup> LDAP during authentication with a search filter like this in attribute-resolver.xml:</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span class="ContentPasted2"> <DataConnector id="LDAP-1" xsi:type="LDAPDirectory"<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span class="ContentPasted2"><span> </span>....<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span class="ContentPasted0"> <span> </span>exportAttributes="uid1,uid2,mail,name">
<div class="ContentPasted0"> <span> </span><FilterTemplate></div>
<div class="ContentPasted0"> <span> </span><![CDATA[</div>
<div class="ContentPasted0 ContentPasted1"> <span> </span><span> </span>(uid1=$resolutionContext.principal)</div>
<span> </span><span> </span> ]]></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span class="ContentPasted0 ContentPasted7"><span> </span></FilterTemplate><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
</DataConnector></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
This works and it returns all attributes correctly from LDAP-1.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
I need to use the returned uid2 of LDAP-1 to search the 2<span><sup>nd</sup> LDAP to return more attributes, but not sure how I can do it. I tried something like:</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<span style="font-size: 12pt; background-color: rgb(255, 255, 255);"><span class="ContentPasted2 ContentPasted4"><DataConnector id="LDAP-2" xsi:type="LDAPDirectory"<br class="ContentPasted4">
</span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<div style="font-size: 12pt; background-color: rgb(255, 255, 255);"><span class="ContentPasted2 ContentPasted4"><span class="ContentPasted4"> </span>....<br class="ContentPasted4">
</span></div>
<div style="font-size: 12pt; background-color: rgb(255, 255, 255);"><span class="ContentPasted0 ContentPasted4"> <span class="ContentPasted4"> </span>exportAttributes="uid2,auxAttr1,auxAttr2">
<div class="ContentPasted0 ContentPasted4"> <span class="ContentPasted4"> </span><FilterTemplate></div>
<div class="ContentPasted0 ContentPasted4 elementToProof"> <span> </span><![CDATA[</div>
<div class="ContentPasted0 ContentPasted4 elementToProof"> <span> </span><span> <span> </span><span> </span>#set ($uid2value=
<span class="ContentPasted0 ContentPasted4 ContentPasted5">$uid2.get(0)</span>)</span><br>
</div>
<div class="ContentPasted0 ContentPasted1 ContentPasted4"> <span> </span><span> </span> (uid2=$uid2value)</div>
<span> </span><span> </span> ]]></span></div>
<div style="font-size: 12pt; background-color: rgb(255, 255, 255);"><span class="ContentPasted0 ContentPasted4 ContentPasted8"><span> </span></FilterTemplate><br>
</span></div>
<span style="font-size: 12pt; background-color: rgb(255, 255, 255);" class="ContentPasted3 ContentPasted4"></DataConnector></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
But it does not work. It seems it can't resolve $uid2value in the search filter to actual value of uid2.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
Are you able to point me a direction how I should do this? Thank you very much in advance.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
Johnny Zhang</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted3">
<br>
</div>
</body>
</html>