2015-04-14 20:27 GMT+02:00 Sharad Mathur <[email protected]>:
> Hi,
>
> Thx for the update.....
>
> Post modification getting following errors
>
> Apr 14 23:48:21 - DEBUG - In object
> "cn=test11,ou=Groups,dc=server,dc=test,dc=com":  Attribute "dn" will not be
> written to the destination
> Apr 14 23:48:21 - DEBUG - In object
> "cn=test11,ou=Groups,dc=server,dc=test,dc=com":  Attribute "uniqueMember" is
> in FORCE status
> Apr 14 23:48:21 - DEBUG - In object
> "cn=test11,ou=Groups,dc=server,dc=test,dc=com":  Attribute "uniqueMember"
> will not be written to the destination
> Apr 14 23:48:21 - ERROR - Error while adding entry
> cn=test11,ou=Groups,dc=server,dc=test,dc=com in directory
> :javax.naming.directory.SchemaViolationException: [LDAP: error code 65 -
> object class 'groupOfNames' requires attribute 'uniqueMember']; remaining
> name 'cn=test11,ou=Groups'
> Apr 14 23:48:21 - ERROR - Error while synchronizing ID
> cn=test11,ou=Groups,dc=server,dc=test,dc=com: java.lang.Exception: Technical
> problem while applying modifications to the destination
> Apr 14 23:48:21 - DEBUG - java.lang.Exception: Technical problem while
> applying modifications to the destination
> java.lang.Exception: Technical problem while applying modifications to the
> destination
>             at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:801)
> [lsc-core-2.1.2.jar:na]
>             at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707)
> [lsc-core-2.1.2.jar:na]
>             at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> [na:1.6.0_22]
>             at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> [na:1.6.0_22]
>             at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
> # Tue Apr 14 23:48:21 IST 2015
> dn: cn=test11,ou=Groups,dc=server,dc=test,dc=com
> changetype: add
> cn: test11
> objectClass: groupOfNames
> objectClass: top
>
> Please see while adding in LDAP its not carrying uniqueMember attribute.
>
> Here is the lsc.xml again
> <string>
>                                 <![CDATA[rjs:
>                 var membersSrcDn = srcBean.getDatasetValuesById("member");
>                                 var membersDstDn = new
> java.util.ArrayList();
>                 for  (var i=0; i<membersSrcDn.size(); i++) {
>                      var memberSrcDn = membersSrcDn.get(i);
>                      var sAMAccountName = "";
>                      try {
>                          sAMAccountName = srcLdap.attribute(memberSrcDn,
> "sAMAccountName").get(0);
>                         } catch(e) {
>                             continue;
>                         }
>                      var destDn = ldap.search("ou=test", "(uid=" +
> sAMAccountName + ")");
>                      if (destDn.size() == 0 || destDn.size() > 1) {
>                               continue;
>                       }
>                      var destMemberDn = destDn.get(0) + "," +
> ldap.getContextDn();
>                      membersDstDn.add(destMemberDn);
>                 }
>                 membersDstDn
>            ]]>
>            </string>
>



Seems that the script return no values for uniqueMember. You need to
try to use the Rhino debugger to know what happens:
http://lsc-project.org/wiki/documentation/latest/scripting/start#debugger


Clément.
_______________________________________________________________
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