<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Now that I can fetch attributes from LDAP when authenticating a
    subject with IdP using SAML protocols, I would like to include a
    multi-valued attribute that has all the groups that the subject is a
    member of. The best coverage of this in the archives that I could
    find was in the following thread:<br>
    <br>
<a class="moz-txt-link-freetext" href="https://groups.google.com/forum/?fromgroups#!searchin/shibboleth-users/ldap$20group/shibboleth-users/IGFGwdwUVHA/RzLAdBcRW2UJ">https://groups.google.com/forum/?fromgroups#!searchin/shibboleth-users/ldap$20group/shibboleth-users/IGFGwdwUVHA/RzLAdBcRW2UJ</a><br>
    <br>
    I would be grateful for advice on following questions:<br>
    <br>
    <ul>
      <li>What does the FilterTemplate in the following mean (it is from
        the thread referenced above)?<br>
        <br>
        &nbsp; &nbsp;&nbsp; &lt;resolver:DataConnector id="ldapGroups"
        xsi:type="LDAPDirectory"<br>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns="urn:mace:shibboleth:2.
        <p><wbr>0:resolver:dc"<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ldapURL="<a class="moz-txt-link-freetext" href="ldap://">ldap://</a><a href="http://ldap.example.edu"
            target="_blank">ldap.example.<wbr>edu</a>"<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;baseDN="ou=People,dc=example,<wbr>dc=edu"<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maxResultSize="500"<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mergeResults="true"&gt;<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;FilterTemplate&gt;<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;![CDATA[<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
          (&amp;(objectclass=<wbr>rfc822mailgroup)(member=uid=$<wbr>requestContext.principalName,<wbr>ou=people,dc=example,dc=edu))<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]]&gt;<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/FilterTemplate&gt;<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ReturnAttributes&gt;dn&lt;/<wbr>ReturnAttributes&gt;<br>
          &nbsp; &nbsp; &nbsp;&lt;/resolver:DataConnector&gt;<br>
          <br>
        </p>
      </li>
      <li>
        <p>I already have a DataConnector as follows. Do I need a second
          one for the ldapGroups or can I have multiple FilterTemplates
          in same DataConnector.<br>
          Here is my existing DataConnector and AttributeDefinition that
          references it:<br>
          <br>
          &nbsp;&nbsp;&nbsp; &lt;resolver:DataConnector id="myLDAP"
          xsi:type="dc:LDAPDirectory"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          ldapURL=<a class="moz-txt-link-rfc2396E" href="ldap://wellfleet1.wellfleetsoftware.com:10389/">"ldap://wellfleet1.wellfleetsoftware.com:10389/"</a> <br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baseDN="dc=springframework,dc=org"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; principal="uid=admin,ou=system"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; principalCredential="ldap1" <br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dc:FilterTemplate&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;![CDATA[<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (uid=$requestContext.principalName)<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]]&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dc:FilterTemplate&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
          &nbsp;&nbsp;&nbsp; &lt;/resolver:DataConnector&gt;<br>
          <br>
          &nbsp;&nbsp;&nbsp; &lt;resolver:AttributeDefinition xsi:type="ad:Simple"
          id="uid"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          sourceAttributeID="uid"&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;resolver:Dependency ref="myLDAP" /&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;resolver:AttributeEncoder
          xsi:type="enc:SAML1String"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          name="urn:mace:dir:attribute-def:uid" /&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;resolver:AttributeEncoder
          xsi:type="enc:SAML2String"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          name="urn:oid:0.9.2342.19200300.100.1.1" friendlyName="uid"
          /&gt;<br>
          &nbsp;&nbsp;&nbsp; &lt;/resolver:AttributeDefinition&gt;<br>
          <br>
        </p>
      </li>
      <li>
        <p>Do I need a new AttributeDefinition for the groups attribute?
          If so, what does that look like?<br>
          <br>
        </p>
      </li>
    </ul>
    <p>Thank you for all the terrific help from Scott and other
      community members.<br>
    </p>
    <p>Lastly, for some mysterious reason I did not get responses for
      one of my previous questions after several folks responded. I
      apologize for asking that question again after it had been
      answered.<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Regards,
Farrukh Najmi

Web: <a class="moz-txt-link-freetext" href="http://www.wellfleetsoftware.com">http://www.wellfleetsoftware.com</a>

</pre>
  </body>
</html>