Issue #593 has been updated by Clément OUDOT.

I made test but I can't reproduce the problem. here is my configuration :

<pre>
  <connections>
    <ldapConnection>
      <name>openldap</name>
      <url>ldap://localhost/dc=example,dc=com</url>
      <username>cn=admin,dc=example,dc=com</username>
      <password>xxx</password>
      <authentication>SIMPLE</authentication>
      <referral>IGNORE</referral>
      <derefAliases>NEVER</derefAliases>
      <version>VERSION_3</version>
      <pageSize>-1</pageSize>
      <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
      <tlsActivated>false</tlsActivated>
      <recursiveDelete>true</recursiveDelete>
    </ldapConnection>
    <ldapConnection>
      <name>ad</name>
      <url>ldaps://ad.example.com/DC=example,DC=com</url>
      <username>cn=Demo LSC,cn=Users,dc=example,dc=com</username>
      <password>xxx</password>
      <authentication>SIMPLE</authentication>
      <referral>THROW</referral>
      <derefAliases>NEVER</derefAliases>
      <version>VERSION_3</version>
      <pageSize>1</pageSize>
      <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
      <tlsActivated>false</tlsActivated>
      <sortedBy>cn</sortedBy>
    </ldapConnection>
  </connections>
</pre>

When running a task: 

<pre>
clement@ader:~$ /home/clement/Programmes/lsc/bin/lsc -f 
/home/clement/tmp/lsc-conf/openldap2ad/ -c user
août 20 17:25:23 - DEBUG - Loading XML configuration from: 
/home/clement/tmp/lsc-conf/openldap2ad/lsc.xml
août 20 17:25:24 - INFO  - Reflections took 305 ms to scan 1 urls, producing 60 
keys and 226 values 
août 20 17:25:24 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd
août 20 17:25:24 - INFO  - Logging configuration successfully loaded from 
/home/clement/tmp/lsc-conf/openldap2ad/logback.xml 
août 20 17:25:24 - INFO  - LSC configuration successfully loaded from 
/home/clement/tmp/lsc-conf/openldap2ad/
août 20 17:25:24 - INFO  - Connecting to LDAP server 
ldaps://ad.example.com/DC=example,DC=com as cn=Demo 
LSC,cn=Users,dc=example,dc=com
août 20 17:25:25 - INFO  - Connecting to LDAP server 
ldap://localhost/dc=example,dc=com as cn=admin,dc=example,dc=com
août 20 17:25:25 - INFO  - Starting clean for user
août 20 17:25:25 - DEBUG - Using pagedResults control for 1 entries at a time
août 20 17:25:25 - WARN  - ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU 
has been fully decoded but there are still bytes in the buffer.
août 20 17:25:25 - WARN  - ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU 
has been fully decoded but there are still bytes in the buffer.
août 20 17:25:25 - WARN  - ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU 
has been fully decoded but there are still bytes in the buffer.
août 20 17:25:25 - WARN  - ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU 
has been fully decoded but there are still bytes in the buffer.
août 20 17:25:25 - INFO  - All entries: 2, to modify entries: 0, successfully 
modified entries: 0, errors: 0
août 20 17:25:25 - INFO  - There is no future associated with the messageId 3, 
ignoring the message
août 20 17:25:25 - INFO  - There is no future associated with the messageId 3, 
ignoring the message

</pre>

----------------------------------------
Bug #593: Active Directory Paging
http://tools.lsc-project.org/issues/593

Author: Thierry Deillon
Status: Assigned
Priority: Normal
Assigned to: Clément OUDOT
Category: Core
Target version: 2.0.3
Problem in version: 


Since version 2.0, I have the following error when trying to synchronize more 
than <pageSize> (here set to 30) users in Active Directory.

2013-06-03 14:11:51 - INFO  - Starting sync for UserSyncTask
2013-06-03 14:11:51 - DEBUG - Using pagedResults control for 30 entries at a 
time
2013-06-03 14:11:52 - ERROR - javax.naming.OperationNotSupportedException: 
[LDAP: error code 12 - 00002040: SvcErr: DSID-031401F1, problem 5010 
(UNAVAIL_EXTENSION), data 0
]; remaining name 'ou=Users'
2013-06-03 14:11:52 - DEBUG - javax.naming.OperationNotSupportedException: 
[LDAP: error code 12 - 00002040: SvcErr: DSID-031401F1, problem 5010 
(UNAVAIL_EXTENSION), data 0
]; remaining name 'ou=Users'
javax.naming.OperationNotSupportedException: [LDAP: error code 12 - 00002040: 
SvcErr: DSID-031401F1, problem 5010 (UNAVAIL_EXTENSION), data 0
]
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3147) 
~[na:1.7.0_17]
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033) 
~[na:1.7.0_17]
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840) 
~[na:1.7.0_17]
        at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1849) ~[na:1.7.0_17]
        at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772) ~[na:1.7.0_17]
        at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
 ~[na:1.7.0_17]
        at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
 ~[na:1.7.0_17]
        at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
 ~[na:1.7.0_17]
        at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267) 
~[na:1.7.0_17]
        at org.lsc.jndi.JndiServices.doGetAttrsList(JndiServices.java:1123) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at org.lsc.jndi.JndiServices.getAttrsList(JndiServices.java:1055) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at 
org.lsc.jndi.SimpleJndiSrcService.getListPivots(SimpleJndiSrcService.java:176) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at 
org.lsc.AbstractSynchronize.synchronize2Ldap(AbstractSynchronize.java:312) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:220) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:157) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at org.lsc.Launcher.run(Launcher.java:223) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at org.lsc.Launcher.launch(Launcher.java:158) 
[lsc-core-trunk-SNAPSHOT.jar:na]
        at org.lsc.Launcher.main(Launcher.java:141) 
[lsc-core-trunk-SNAPSHOT.jar:na]


See below the definition of the ActiveDirectory connection:
   <ldapConnection>
      <name>ldap-src-conn</name>
      <url>ldaps://10.0.10.10:50061/DC=corp,DC=my</url>
      <username>CN=admin,OU=Admin,DC=corp,DC=my</username>
      <password>XXXXXXX</password>
      <authentication>SIMPLE</authentication>
      <referral>THROW</referral>
      <derefAliases>NEVER</derefAliases>
      <version>VERSION_3</version>
      <pageSize>30</pageSize>
      <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
      <tlsActivated>true</tlsActivated>
      <sortedBy>cn</sortedBy>
    </ldapConnection>

This issue does not happen on lsc-1.2.2.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to