I did it, but without success.<br>
Has someone done it before ?<div><br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 16:06, Chad La Joie <span dir="ltr">&lt;<a href="mailto:lajoie@itumi.biz">lajoie@itumi.biz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Refer to the documentation for what the template language supports.<br>
<div><div class="h5"><br>
On Fri, Dec 16, 2011 at 09:57, Thierry Albain &lt;<a href="mailto:talbain@sqli.com">talbain@sqli.com</a>&gt; wrote:<br>
&gt; Hi everybody<br>
&gt;<br>
&gt; I work with the latest version of Shibboleth.<br>
&gt;<br>
&gt; I would like to configure my LDAP Dataconnector with a dynamic baseDN which<br>
&gt; depends on the result of the principalName.<br>
&gt; For example, here is my (bad) DataConnector:<br>
&gt;<br>
&gt; &lt;resolver:DataConnector id=&quot;openDJ&quot; xsi:type=&quot;dc:LDAPDirectory&quot;<br>
&gt;       ldapURL=&quot;ldap://localhost:389&quot;<br>
&gt;       baseDN=&quot;cn=${requestContext.principalName}, ou=users, ou=mycompany,<br>
&gt; c=com&quot;<br>
&gt;       principal=&quot;cn=Directory Manager&quot;<br>
&gt;       principalCredential=&quot;************&quot;<br>
&gt;       searchScope=&quot;ONELEVEL&quot;&gt;<br>
&gt;       &lt;dc:FilterTemplate&gt;<br>
&gt;           &lt;![CDATA[<br>
&gt;               (cn=*)<br>
&gt;           ]]&gt;<br>
&gt;       &lt;/dc:FilterTemplate&gt;<br>
&gt;       &lt;dc:ReturnAttributes&gt;cn&lt;/dc:ReturnAttributes&gt;<br>
&gt; &lt;/resolver:DataConnector&gt;<br>
&gt;<br>
&gt; If I authenticate with my own credentials (id=talbain), I should find<br>
&gt; entries like this : cn=xxx,cn=talbain,ou=users,ou=mycompany,c=com<br>
&gt; It doesn&#39;t work, but how can I proceed to succeed ?<br>
&gt;<br>
&gt; Thanks a lot<br>
&gt;<br>
&gt; Thierry ALBAIN<br>
&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
&gt; To unsubscribe from this list send an email to<br>
&gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Chad La Joie<br>
<a href="http://www.itumi.biz" target="_blank">www.itumi.biz</a><br>
trusted identities, delivered<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br></div>