Hi,

Le 2015-03-25 18:28, Darin Perusich a écrit :
Hello All,

I'm using sequences to increment uidNumber when syncing new accounts,
however I'm seeing that the uidNumber sequence I'm leveraging is being
incremented when running lsc with the -n,--dryrun options. I've been
directed to the scripting documentation on variables for disabling
these, however it's unclear to me how to use these variables. If
someone could provide some guidance or an example of how to use these
variables in the lsc.xml I'd really appreciate it.

http://lsc-project.org/wiki/documentation/2.0/configuration/syncoptions/sequences
http://lsc-project.org/wiki/documentation/latest/scripting/start#variables

In pseudo code you only have to replace your existing code by something like:
if (! noupdate) {
   inc_seq();
}

noupdate will be defined to true in dryrun mode.

Regards,
Raphaël Ouazana.
_______________________________________________________________
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