Even with the escaping the error still persists.
I've compared the two console texts that are returned.
Without DN escaping:
Apr 06 11:15:08 - INFO - Logging configuration successfully loaded from
/etc/lsc/openldap2ad/logback.xml
Apr 06 11:15:08 - INFO - LSC configuration successfully loaded from
/etc/lsc/openldap2ad/
Apr 06 11:15:08 - INFO - Connecting to LDAP server ldap://
ldaptest.escaux.com:389/dc=escaux,dc=com as
cn=Administrator,cn=Users,dc=ldaptest,dc=escaux,dc=com
Apr 06 11:15:08 - INFO - Connecting to LDAP server ldap://
server.ldap.com:389/dc=ldap,dc=com as cn=admin,dc=ldap,dc=com
Apr 06 11:15:08 - INFO - Starting sync for adUser
Apr 06 11:15:08 - ERROR - Fail to compute expression:
srcBean.getDatasetFirstValuebyId("uid") on id=cn=new
user,ou=People,dc=ldap,dc=com
Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError:
TypeError: Cannot find function getDatasetFirstValuebyId in object id:
cn=new user,ou=People,dc=ldap,dc=com
=> uid - nuser
=> sn - user
=> userpassword - [B@15dc6730
=> cn - new user
=> givenname - new
. (<Unknown source>#5) in <Unknown source> at line number 5
Apr 06 11:15:08 - ERROR - Error while synchronizing ID {uid=nuser}:
org.lsc.exception.LscServiceException: javax.script.ScriptException:
sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function
getDatasetFirstValuebyId in object id: cn=new user,ou=People,dc=ldap,dc=com
=> uid - nuser
=> sn - user
=> userpassword - [B@15dc6730
=> cn - new user
=> givenname - new
. (<Unknown source>#5) in <Unknown source> at line number 5
Apr 06 11:15:08 - ERROR - All entries: 9, to modify entries: 0,
successfully modified entries: 0, errors: 1
Apr 06 11:15:08 - INFO - Starting clean for adUser
Apr 06 11:15:08 - INFO - All entries: 8, to modify entries: 0,
successfully modified entries: 0, errors: 0
With DN escaping:
Apr 06 11:13:52 - INFO - Logging configuration successfully loaded from
/etc/lsc/openldap2ad/logback.xml
Apr 06 11:13:52 - INFO - LSC configuration successfully loaded from
/etc/lsc/openldap2ad/
Apr 06 11:13:52 - INFO - Connecting to LDAP server ldap://
ldaptest.escaux.com:389/dc=escaux,dc=com as
cn=Administrator,cn=Users,dc=ldaptest,dc=escaux,dc=com
Apr 06 11:13:52 - INFO - Connecting to LDAP server ldap://
server.ldap.com:389/dc=ldap,dc=com as cn=admin,dc=ldap,dc=com
Apr 06 11:13:52 - INFO - Starting sync for adUser
Apr 06 11:13:53 - ERROR - Fail to compute expression:
srcBean.getDatasetFirstValuebyId("uid") on id=cn=new
user,ou=People,dc=ldap,dc=com
Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError:
TypeError: Cannot find function getDatasetFirstValuebyId in object id:
cn=new user,ou=People,dc=ldap,dc=com
=> uid - nuser
=> sn - user
=> userpassword - [B@6ea3fff1
=> cn - new user
=> givenname - new
. (<Unknown source>#5) in <Unknown source> at line number 5
Apr 06 11:13:53 - ERROR - Error while synchronizing ID {uid=nuser}:
org.lsc.exception.LscServiceException: javax.script.ScriptException:
sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function
getDatasetFirstValuebyId in object id: cn=new user,ou=People,dc=ldap,dc=com
=> uid - nuser
=> sn - user
=> userpassword - [B@6ea3fff1
=> cn - new user
=> givenname - new
. (<Unknown source>#5) in <Unknown source> at line number 5
Apr 06 11:13:53 - ERROR - All entries: 9, to modify entries: 0,
successfully modified entries: 0, errors: 1
Apr 06 11:13:53 - INFO - Starting clean for adUser
Apr 06 11:13:53 - INFO - All entries: 8, to modify entries: 0,
successfully modified entries: 0, errors: 0
The only thing that's different is the userPassword value ([B@15dc6730 and
[B@6ea3fff1). I don't think that has anything to do with my problem though.
Siard vB
On Wed, Apr 6, 2016 at 11:09 AM, Clément OUDOT <
[email protected]> wrote:
>
>
> Le 06/04/2016 10:20, Siard van Belkum a écrit :
>
>> I've debugged using rdjs: / Rhino Debugger.
>>
>> Using the steps shown in the images (Attachment), I've found that the
>> function srcBean.getDatasetFirstValueById("cn") works as expected for the
>> most part. For every records in my source directory (openLDAP), this
>> function returns the cn three times.
>>
>> When the debugger arrives at the "new user" record it only returns the cn
>> one time and. Would you know what the reason for this is because I think
>> this is where the problem appears.
>>
>> Could it be that the problem lies with Active Directory (the destination
>> directory). Or is there something that doesn't let new users be created in
>> AD?
>>
>> What are your thoughts on this?
>>
>
>
> Did you apply the DN escaping? See
> http://lsc-project.org/wiki/documentation/latest/upgrade#dn_escaping
>
> This may fix your problem.
>
> --
> Clément OUDOT
> Consultant en logiciels libres, Expert infrastructure et sécurité
> Savoir-faire Linux
> 87, rue de Turbigo - 75003 PARIS
> Blog: http://sflx.ca/coudot
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
>
--
Siard van Belkum
Intern
Escaux
Escaux, Communication as easy as the web
Chaussée de Bruxelles 408, 1300 Wavre, Belgium
Direct:
Main: +3226860900
www.escaux.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users