Le 03/06/2019 à 16:00, Ralf Mattes a écrit : > > Am Montag, 03. Juni 2019 15:50 CEST, Clément OUDOT > <[email protected]> schrieb: > >> Le 03/06/2019 à 15:45, Ralf Mattes a écrit : >>> >>> Am Montag, 03. Juni 2019 15:40 CEST, "Ralf Mattes" <[email protected]> >>> schrieb: >>> >>> >>>> Jun 03 14:57:19 - INFO - Starting sync for Sync-Students >>>> Jun 03 14:57:22 - ERROR - Fail to compute expression: >>>> dstBean.getMainIdentifier() on id=3295 >>>> Reason: javax.script.ScriptException: TypeError: null has no such function >>>> "getMainIdentifier" in <eval> at line number 5 >>>> Jun 03 14:57:22 - ERROR - Error while synchronizing ID >>>> {mhfreiburgmatrikelnummer=3295}: org.lsc.exception.LscServiceException: >>>> javax.script.ScriptException: TypeError: null has no such function >>>> "getMainIdentifier" in <eval> at line number 5 >>>> Jun 03 14:57:30 - ERROR - Fail to compute expression: >>>> dstBean.getMainIdentifier() on id=4891 >>>> Reason: javax.script.ScriptException: TypeError: null has no such function >>>> "getMainIdentifier" in <eval> at line number 5 >>>> Jun 03 14:57:30 - ERROR - Error while synchronizing ID >>>> {mhfreiburgmatrikelnummer=4891}: org.lsc.exception.LscServiceException: >>>> javax.script.ScriptException: TypeError: null has no such function >>>> "getMainIdentifier" in <eval> at line number 5 >>>> Jun 03 14:57:41 - ERROR - All entries: 556, to modify entries: 554, >>>> successfully modified entries: 0, errors: 2 >>> Ah, I just cranked up my server logging: those entries do not exist in the >>> destination server. Why would this raise an error? >>> >>> >> >> What did you configure in mainIdentifier? > Here's the relevant section (I must admit that I wrote the quite some time > ago): > > <propertiesBasedSyncOptions> > <mainIdentifier>dstBean.getMainIdentifier()</mainIdentifier> > <defaultDelimiter>;</defaultDelimiter> > <defaultPolicy>FORCE</defaultPolicy>
So this will never works to add an entry, as dstBean does not exists in this case. You can use this for a connector that will only do updates. For creation, you must specify the destination DN. -- 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

