2014-04-15 15:29 GMT+02:00 Deividas haspo <[email protected]>: > When I try to sync with conditions, that all users whose employeeNumber > has string "AB", I sync all users. And also those who hasn't got any "AB" > in there employeeNumber. > Any suggestions? > > my code: > <mainIdentifier> > js: > var first = srcBean. > getDatasetFirstValueById("employeeNumber") > var second = first.match("AB") > var third = first.match("AB") > if (second = first.match("AB")) {first} > else if (third = first.match("AB")) {first} > else {false} > "CN=" + srcBean.getDatasetFirstValueById("cn") + > ",OU=group,DC=server,DC=org" > <mainIdentifier> > > >
Why are you using mainIdentifier for such condition? Just code the condition in the <create> condition, in <conditions> paragraph. Clément.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

