Issue #222 has been updated by Clément OUDOT.

File lsc_js_debugger.png added
Status changed from Feedback to Assigned
Assigned to changed from Clément OUDOT to Raphaël Ouazana

It works well in mainIdentifier markup but not in dataset.

Examples:
<pre>
 <mainIdentifier>rdjs:"cn=" + srcBean.getDatasetFirstValueById("cn") + 
",OU=users,ou=demo,DC=example,DC=com"</mainIdentifier>
</pre>

Display the debug window (see attached file).

<pre>
       <dataset>
         <name>userAccountControl</name>
         <policy>FORCE</policy>
         <forceValues>
           <string>
           <![CDATA[rdjs:
             var lock = 
srcBean.getDatasetFirstValueById("pwdAccountLockedTime");

             var dstUac = "0";
             try { dstUac = 
dstBean.getDatasetFirstValueById("userAccountControl"); } catch(e) { }

             var uac = AD.userAccountControlSet( dstUac, 
[AD.UAC_SET_NORMAL_ACCOUNT, AD.UAC_UNSET_ACCOUNTDISABLE]);

             if ( lock.length() ) {
               uac = AD.userAccountControlSet( dstUac, 
[AD.UAC_SET_NORMAL_ACCOUNT, AD.UAC_SET_ACCOUNTDISABLE]);
             }

             uac;
           ]]>
           </string>
         </forceValues>
</pre>

Do not display anything
----------------------------------------
Feature #222: Javascript debugger
http://tools.lsc-project.org/issues/222

Author: Raphaël Ouazana
Status: Assigned
Priority: Normal
Assigned to: Raphaël Ouazana
Category: Core
Target version: 2.1


Hi,

As scripting in LSC become more on more complex, it would be fine to integrate 
a Javascript Debugger, like Rhino's one :
http://www.mozilla.org/rhino/debugger.html

Regards,
Raphaël Ouazana.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

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

Reply via email to