Hi Clement,


Ok. But in my case, I have mysql as source instead of ldap so I am planning to 
supply list of members as below:



| uniqueMember           |

+------------------------+

| hvshah,hvshah1,hvshah2 |

+------------------------+



for  (var i=0; i<membersSrcDn.size(); i++) {

                   var memberSrcDn = membersSrcDn.get(i);

                   var uid = memberSrcDn;

                   var destDn = ldap.search("ou=Users,dc=testrjil,dc=net", 
"(sAMAccountName=" + uid + ")");



it is throwing errors as below:



Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: 
TypeError: Cannot call method "size" of null (<Unknown source>#11) in <Unknown 
source> at line number 11

Jan 29 14:22:28 - ERROR - Error while synchronizing ID {groupname=demogrp2}: 
org.lsc.exception.LscServiceException: javax.script.ScriptException: 
sun.org.mozilla.javascript.EcmaError: TypeError: Cannot call method "size" of 
null (<Unknown source>#11) in <Unknown source> at line number 11

Jan 29 14:22:28 - ERROR - Fail to compute expression:

             rjs:

                var membersSrcDn = srcBean.getDatasetValuesById("uniqueMember");

                var membersDstDn = [];

                for  (var i=0; i<membersSrcDn.size(); i++) {

                   var memberSrcDn = membersSrcDn.get(i);

                   var uid = memberSrcDn;

                   var destDn = ldap.search("ou=Users,dc=testrjil,dc=net", 
"(sAMAccountName=" + uid + ")");

                   if (destDn.size() == 0 || destDn.size() > 1) {

                     continue;

                   }

                   var destMemberDn = destDn.get(0) + "," +  
ldap.getContextDn();

                   membersDstDn.push(destMemberDn);

                 }

                 membersDstDn



               on id=demogrp3

Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: 
TypeError: Cannot call method "size" of null (<Unknown source>#11) in <Unknown 
source> at line number 11

Jan 29 14:22:28 - ERROR - Error while synchronizing ID {groupname=demogrp3}: 
org.lsc.exception.LscServiceException: javax.script.ScriptException: 
sun.org.mozilla.javascript.EcmaError: TypeError: Cannot call method "size" of 
null (<Unknown source>#11) in <Unknown source> at line number 11



And I am passing uid itself to add a member, so it can take each user, get 
other details like CN and all from AD and add user to the respective group. Is 
it possible? Or I need to change somewhere?



-Hardik
"Confidentiality Warning: This message and any attachments are intended only 
for the use of the intended recipient(s). 
are confidential and may be privileged. If you are not the intended recipient. 
you are hereby notified that any 
review. re-transmission. conversion to hard copy. copying. circulation or other 
use of this message and any attachments is 
strictly prohibited. If you are not the intended recipient. please notify the 
sender immediately by return email. 
and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure 
no viruses are present in this email. 
The company cannot accept responsibility for any loss or damage arising from 
the use of this email or attachment."
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to