LDAP Connector - Search Paging

I've been having trouble doing an LDAP search against all users in our Active Directory instance via the LDAP connector.

The issues is that AD, by default, only supports 1000 search results. I've dug into the code here:

https://github.com/bonitasoft/bonita-connector-ldap/blob/master/src/main/java/org/bonitasoft/connectors/ldap/LdapConnector.java

...and there's no paging logic at all.

Has anyone modified the existing LDAP Connector to implement paging (or have some other workaround)? Just asking before I get my hands dirty.

Hi Andrew,

I am not sure but it looks after reading the code that there is size limit but not paginated calls. If that is the case, you can implement it with a multi-instantiated task in sequence or a loop task that retrieve the elements.

Anyway, if at the end you evolve the LDAP connector, feel free to contribute it with Pull Request (https://github.com/bonitasoft/bonita-connector-ldap )! We will apreciate !!

Cheers

Ok, have added an issue and a PR:

https://github.com/bonitasoft/bonita-connector-ldap/issues/4

https://github.com/bonitasoft/bonita-connector-ldap/pull/5

https://github.com/bonitasoft/bonita-connector-ldap/pull/5

Hi Andrew, 

Just to let you know that your contribution has been integrated in the latest maintenance version Bonita 7.11.1: https://documentation.bonitasoft.com/bonita/7.11/release-notes#toc25

We really appreciate your contribution. Thank you!