Issue #549 has been updated by Maxime Pelletier.
Hi Raphaƫl,
Thank you for your feedback. With your comment, I could figure out what was
going on.
When I run my task "for real", it adds class sambaAccount to entries that don't
have it already. I have this config in order to do this:
<pre>
<conditions>
<create>false</create>
<update>true</update>
<delete>false</delete>
<changeId>false</changeId>
</conditions>
</pre>
So without the "-n" flag, LSC don't try to add new entries since <create> is
set to false. However, with "-n", it seems that LSC ignore this flag and try to
create new entries. Since my <getOneFilter> contains
"(!(objectClass=sambaAccount))", LSC doesn't find the entry in LDAP and assume
it doesn't exist. LSC then calculate all fields create the new entry.
In short:
- I'm using LSC in a weird way (in order in increase performance) that is not
compatible with LSC design
- LSC should not evaluate entries creation in dry mode if <create> is set to
false
What do you think about that?
Thanks for helping clarify all that. I realize that, bottomline, it's my error
:)
----------------------------------------
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