Hello Clement,

Thanks for the enquiry. In the meantime , I found my error :

Somewhere in one on my dataset , I was calling  an external java function :

/       <dataset>//
//          <name>SambaPwdLastSet</name>//
//          <policy>KEEP</policy>//
//          <defaultValues>//
////*<string>js:TimeInSecond()</string>*//
//          </defaultValues>//
//          <forceValues>//
//          </forceValues>//
//          <createValues>//
//          </createValues>//
//        </dataset> /

And at the end of that function, I just forgot the final '}' !!!

Grrrr.. sorry for that ...

Thanks :)


Le 24.03.2020 à 19:22, Clément OUDOT a écrit :


Le 24/03/2020 à 14:29, Arnaud Gymnase a écrit :

Hello all,

I suddenly got an error I can't find. I alreday looked my file 30 times without success... maybe some other eyes will help me finding my problem ... :)


Here's the error :

/root@master etc]# lsc -s all//
//mars 24 14:17:52 - INFO  - Logging configuration successfully loaded from /etc/lsc/logback.xml// //mars 24 14:17:52 - INFO  - LSC configuration successfully loaded from /etc/lsc/// //mars 24 14:17:52 - INFO  - Connecting to LDAP server ldap://localhost:389/dc=GFB,dc=LAN as cn=manager,ou=Internal,dc=GFB,dc=LAN//
//mars 24 14:17:52 - INFO  - Starting sync for ClearOSIBM//
//mars 24 14:17:53 - ERROR - Fail to compute expression: "cn=" + srcBean.getDatasetFirstValueById("cn") + ",ou=Users,ou=Accounts,dc=GFB,dc=LAN" on id=12000// //Reason: javax.script.ScriptException: <eval>:9:0 Expected } but found eof//
//
//^ in <eval> at line number 9 at column number 0//
//mars 24 14:17:53 - ERROR - Error while synchronizing ID {uidnumber=12000}: org.lsc.exception.LscServiceException: javax.script.ScriptException: <eval>:9:0 Expected } but found eof/

And here's my line of configuration ...

...

<getAllFilter>(&amp;(objectClass=PosixAccount)(sambaDomainName=GFB))</getAllFilter>
<getOneFilter>(&amp;(objectClass=posixaccount)(uidnumber={uidnumber}))</getOneFilter>
</ldapDestinationService>

<propertiesBasedSyncOptions>
       <mainIdentifier>"cn=" + srcBean.getDatasetFirstValueById("cn") + ",ou=Users,ou=Accounts,dc=GFB,dc=LAN"</mainIdentifier>

       <defaultDelimiter>;</defaultDelimiter>

<!--    ./defaultPolicy This mandatory node must contain a string Javascript expression that will enforce the object main identifier.-->

        <defaultPolicy>FORCE</defaultPolicy>



Per advance, thanks to all for your help



No idea... What is the cn value for this entry?

--
Clément Oudot | Identity Solutions Manager

[email protected]

Worteks |https://www.worteks.com

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to