Issue #549 has been updated by Raphaƫl Ouazana.

I tried again with a configuration similar to yours (db2ldap sync), and I still 
have no problem.

Maybe your connector is trying to add the entry to the LDAP repository, so it 
can't get the dstBean. This could happen in two cases:
- your LDAP entry still does not exist
- your LDAP entry has not the sambaAccount objectClass or the cn attribute, so 
it is detected has not existing.
----------------------------------------
Bug #549: dstBean not defined in dry-run mode
http://tools.lsc-project.org/issues/549

Author: Maxime Pelletier
Status: Feedback
Priority: Normal
Assigned to: Maxime Pelletier
Category: Core
Target version: 2.0.2
Problem in version: 2.0.1


When running a task in dry-run mode, the dstBean object is not defined:

<pre>
Execution de /LSC/bin/lsc -n  -f /LSC/task/eleves-openldap/etc  -s 
ElevesAccount  
Nov 23 14:11:15 - DEBUG - Loading XML configuration from: 
/LSC/task/eleves-openldap/etc/lsc.xml
Nov 23 14:11:16 - INFO  - Reflections took 410 ms to scan 1 urls, producing 60 
keys and 226 values 
Nov 23 14:11:16 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd
Nov 23 14:11:16 - INFO  - Logging configuration successfully loaded from 
/LSC/task/eleves-openldap/etc/logback.xml 
Nov 23 14:11:16 - INFO  - LSC configuration successfully loaded from 
/LSC/task/eleves-openldap/etc/
Nov 23 14:11:16 - INFO  - Connecting to LDAP server 
ldap://ldap.myldap.com:389/dc=myldap,dc=com as uid=admin,dc=myldap,dc=com
Nov 23 14:11:17 - INFO  - Starting sync for ElevesAccount
Nov 23 14:11:18 - ERROR - javax.script.ScriptException: 
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "dstBean" is not 
defined. (<Unknown source>#3) in <Unknown source> at line number 3
Nov 23 14:11:18 - ERROR - javax.script.ScriptException: 
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "dstBean" is not 
defined. (<Unknown source>#3) in <Unknown source> at line number 3
Nov 23 14:11:18 - ERROR - javax.script.ScriptException: 
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "dstBean" is not 
defined. (<Unknown source>#3) in <Unknown source> at line number 3
Nov 23 14:11:18 - DEBUG - Create condition false. Should have added object 
uid=0313478,ou=PERSONNE,dc=myldap,dc=com
</pre>

When running the same task without dry-run mode, I don't have this problem.


-- 
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