Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:tutorial:convertrecursivegroupstoflatgroups [2018/06/25 18:06]
coudot [Script content]
documentation:tutorial:convertrecursivegroupstoflatgroups [2018/06/25 18:11] (current)
coudot [Script usage in LSC configuration]
Line 100: Line 100:
                 var membersSrcDn = srcBean.getDatasetValuesById("​member"​);​                 var membersSrcDn = srcBean.getDatasetValuesById("​member"​);​
                 var membersDstDn = new java.util.ArrayList();​                 var membersDstDn = new java.util.ArrayList();​
 +                var groupsRegistry = new java.util.ArrayList();​
                 for  (var i=0; i<​membersSrcDn.size();​ i++) {                 for  (var i=0; i<​membersSrcDn.size();​ i++) {
                         var memberSrcDn = membersSrcDn.get(i);​                         var memberSrcDn = membersSrcDn.get(i);​
-                        membersDstDn.addAll( getMembersDn(srcLdap,​ ldap, memberSrcDn) );+                        membersDstDn.addAll( getMembersDn(srcLdap,​ ldap, memberSrcDn, groupsRegistry) );
                 }                 }
                 if ( membersDstDn.size() == 0) {                 if ( membersDstDn.size() == 0) {