It doesn&#39;t work : I tried it without success.<div>The entryDN of my subentry is : cn=subentry, cn=myuser,ou=users... and not only the principalName<br clear="all">
<br><div class="gmail_quote">On Fri, Dec 16, 2011 at 16:53, Tom Zeller <span dir="ltr">&lt;<a href="mailto:tzeller@unicon.net">tzeller@unicon.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Oh, too early. Maybe you want :<br>
<br>
  &lt;FilterTemplate&gt;<br>
        &lt;![CDATA[<br>
            (entryDN=${requestContext.principalName})<br>
        ]]&gt;<br>
    &lt;/FilterTemplate&gt;<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Dec 16, 2011 at 9:50 AM, Tom Zeller &lt;<a href="mailto:tzeller@unicon.net">tzeller@unicon.net</a>&gt; wrote:<br>
&gt; How dynamic is the baseDN ? i.e. How many different baseDNs do you<br>
&gt; anticipate ? Would multiple ldap data connectors work ?<br>
&gt;<br>
&gt; On Fri, Dec 16, 2011 at 9:45 AM, Thierry Albain &lt;<a href="mailto:talbain@sqli.com">talbain@sqli.com</a>&gt; wrote:<br>
&gt;&gt; Thanks, but obviously I read this page of the documentation.<br>
&gt;&gt; I read also the java source of the dataconnector : and I&#39;ve seen it doesn&#39;t<br>
&gt;&gt; accept variables in baseDN.<br>
&gt;&gt; So How can I do ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Dec 16, 2011 at 16:38, Chad La Joie &lt;<a href="mailto:lajoie@itumi.biz">lajoie@itumi.biz</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here you go, first hit if you had search for &quot;ldap data connector&quot;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="https://wiki.shibboleth.net/confluence/display/SHIB2/ResolverLDAPDataConnector" target="_blank">https://wiki.shibboleth.net/confluence/display/SHIB2/ResolverLDAPDataConnector</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, Dec 16, 2011 at 10:33, Thierry Albain &lt;<a href="mailto:talbain@sqli.com">talbain@sqli.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; I don&#39;t find this doc, I just tried to imagine a solution, but it<br>
&gt;&gt;&gt; &gt; doesn&#39;t<br>
&gt;&gt;&gt; &gt; work : the  ${requestContext.principalName} is not replaced by its<br>
&gt;&gt;&gt; &gt; value.<br>
&gt;&gt;&gt; &gt; Could you please send me the doc URL where it is explained ?<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; What I want is to select a subentry in my ldap, which depends on the<br>
&gt;&gt;&gt; &gt; principalName.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Thanks a lot<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On Fri, Dec 16, 2011 at 16:27, Chad La Joie &lt;<a href="mailto:lajoie@itumi.biz">lajoie@itumi.biz</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; You haven&#39;t said what you actually want to do.  The example you showed<br>
&gt;&gt;&gt; &gt;&gt; filled in your user ID into a string.  That&#39;s what the example in the<br>
&gt;&gt;&gt; &gt;&gt; docs show to.  So yes, you can do that.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; On Fri, Dec 16, 2011 at 10:23, Thierry Albain &lt;<a href="mailto:talbain@sqli.com">talbain@sqli.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt; I did it, but without success.<br>
&gt;&gt;&gt; &gt;&gt; &gt; Has someone done it before ?<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; On Fri, Dec 16, 2011 at 16:06, Chad La Joie &lt;<a href="mailto:lajoie@itumi.biz">lajoie@itumi.biz</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; Refer to the documentation for what the template language supports.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; On Fri, Dec 16, 2011 at 09:57, Thierry Albain &lt;<a href="mailto:talbain@sqli.com">talbain@sqli.com</a>&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Hi everybody<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; I work with the latest version of Shibboleth.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; I would like to configure my LDAP Dataconnector with a dynamic<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; baseDN<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; which<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; depends on the result of the principalName.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; For example, here is my (bad) DataConnector:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; &lt;resolver:DataConnector id=&quot;openDJ&quot; xsi:type=&quot;dc:LDAPDirectory&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       ldapURL=&quot;ldap://localhost:389&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       baseDN=&quot;cn=${requestContext.principalName}, ou=users,<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; ou=mycompany,<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; c=com&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       principal=&quot;cn=Directory Manager&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       principalCredential=&quot;************&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       searchScope=&quot;ONELEVEL&quot;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       &lt;dc:FilterTemplate&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;           &lt;![CDATA[<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;               (cn=*)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;           ]]&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       &lt;/dc:FilterTemplate&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;       &lt;dc:ReturnAttributes&gt;cn&lt;/dc:ReturnAttributes&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; &lt;/resolver:DataConnector&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; If I authenticate with my own credentials (id=talbain), I should<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; find<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; entries like this : cn=xxx,cn=talbain,ou=users,ou=mycompany,c=com<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; It doesn&#39;t work, but how can I proceed to succeed ?<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Thanks a lot<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Thierry ALBAIN<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; To unsubscribe from this list send an email to<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; Chad La Joie<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.itumi.biz" target="_blank">www.itumi.biz</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; trusted identities, delivered<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; To unsubscribe from this list send an email to<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt; To unsubscribe from this list send an email to<br>
&gt;&gt;&gt; &gt;&gt; &gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; Chad La Joie<br>
&gt;&gt;&gt; &gt;&gt; <a href="http://www.itumi.biz" target="_blank">www.itumi.biz</a><br>
&gt;&gt;&gt; &gt;&gt; trusted identities, delivered<br>
&gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; To unsubscribe from this list send an email to<br>
&gt;&gt;&gt; &gt;&gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; --<br>
&gt;&gt;&gt; &gt; To unsubscribe from this list send an email to<br>
&gt;&gt;&gt; &gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Chad La Joie<br>
&gt;&gt;&gt; <a href="http://www.itumi.biz" target="_blank">www.itumi.biz</a><br>
&gt;&gt;&gt; trusted identities, delivered<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; To unsubscribe from this list send an email to<br>
&gt;&gt;&gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; To unsubscribe from this list send an email to<br>
&gt;&gt; <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
--<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></div>