<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hello list,
<div><br>
</div>
<div>this is the way I did manage to release nested groups fetched from active directory to a SP. Is this the correct way? Unfortunately I wasn't able to find too much documentation about this requirement.</div>
<div><br>
</div>
<div>Ciao</div>
<div><br>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Cristiano
 Cumer&nbsp;</span></div>
</div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><br>
</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><br>
</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div apple-content-edited="true">&lt;!-- Attributes --&gt;</div>
<div apple-content-edited="true">&lt;resolver:AttributeDefinition xsi:type=&quot;ad:Simple&quot; id=&quot;isMemberOf&quot; sourceAttributeID=&quot;cn&quot;&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;myLDAPGroup&quot; /&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML1String&quot; name=&quot;urn:oid:1.3.6.1.4.1.20462.5.1.9&quot; /&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2String&quot; &nbsp;name=&quot;urn:oid:1.3.6.1.4.1.20462.5.1.9&quot; friendlyName=&quot;isMemberOf&quot; /&gt;</div>
<div apple-content-edited="true">&lt;/resolver:AttributeDefinition&gt;</div>
<div apple-content-edited="true">&nbsp;</div>
<div apple-content-edited="true">&lt;resolver:AttributeDefinition xsi:type=&quot;ad:Simple&quot; id=&quot;distinguishedName&quot; sourceAttributeID=&quot;distinguishedName&quot;&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;myLDAP&quot; /&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML1String&quot; name=&quot;urn:oid:1.3.6.1.4.1.1466.115.121.1.12&quot; /&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2String&quot; &nbsp;name=&quot;urn:oid:1.3.6.1.4.1.1466.115.121.1.12&quot; friendlyName=&quot;distinguishedName&quot; /&gt;</div>
<div apple-content-edited="true">&lt;/resolver:AttributeDefinition&gt;</div>
<div apple-content-edited="true">&nbsp;</div>
<div apple-content-edited="true">&lt;!-- Connectors --&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:DataConnector id=&quot;myLDAP&quot; xsi:type=&quot;dc:LDAPDirectory&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; ldapURL=&quot;<a href="ldap://xxxxx.xxxx.com">ldap://xxxxx.xxxx.com</a>&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; baseDN=&quot;dc=xxxxx,dc=com&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; principal=&quot;cn=xxxxx,ou=xxxxx,ou=xxxxxxx,dc=xxxxx,dc=com&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; principalCredential=&quot;xxxxxx&quot;&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:FilterTemplate&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (samAccountName=$requestContext.principalName)</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dc:FilterTemplate&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:LDAPProperty name=&quot;java.naming.referral&quot; value=&quot;follow&quot;/&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;/resolver:DataConnector&gt;</div>
<div apple-content-edited="true">&nbsp;</div>
<div apple-content-edited="true">&nbsp;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;resolver:DataConnector id=&quot;myLDAPGroup&quot; xsi:type=&quot;dc:LDAPDirectory&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; ldapURL=&quot;<a href="ldap://xxxxx.xxxx.com">ldap://xxxxx.xxxx.com</a>&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; baseDN=&quot;dc=xxxxx,dc=com&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; principal=&quot;cn=xxxxx,ou=xxxx,ou=xxxxxxx,dc=xxxxx,dc=com&quot;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; principalCredential=&quot;xxxxxx&quot; maxResultSize=&quot;1000&quot; mergeResults=&quot;true&quot;&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;distinguishedName&quot;/&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;myLDAP&quot; /&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:FilterTemplate&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; (member:1.2.840.113556.1.4.1941:=$distinguishedName.get(0))</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dc:FilterTemplate&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:ReturnAttributes&gt;cn&lt;/dc:ReturnAttributes&gt; &nbsp;&nbsp;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;dc:LDAPProperty name=&quot;java.naming.referral&quot; value=&quot;follow&quot;/&gt;</div>
<div apple-content-edited="true">&nbsp; &nbsp; &lt;/resolver:DataConnector&gt;</div>
</span></div>
</body>
</html>