I did some additional tests.
The outcome is that actually ldap is working fine, but further scim service queries takes more than 20 seconds to complete.
Here is a simplified scenario:
```
public void test() {
log.info("test");
for (int i = 0; i < 4; i++) {
long startTime = System.currentTimeMillis();
log.info("Iteration: " + i);
ClientSideService client = ScimClientFactory.getClient(...);
try {
String inum = "dd539fac-088d-4923-826e-9d1449c75528"; // This user should exist without any registered devices
String query = "urn:ietf:params:scim:schemas:core:2.0:FidoDevice:deviceKeyHandle eq \"somekeyhandle\"";
Integer startIndex = 1;
Integer count = 200;
String sortBy = "meta.created";
String order = "descending";
log.info("Performing ClientSideService query");
Response response = client.searchDevices(inum, query, 1, 200, sortBy, order, (String) null, (String) null);
log.info("Success");
} catch (Exception e) {
log.error("Unable to fetch");
} finally {
long endTime = System.currentTimeMillis();
long duration = (endTime - startTime);
log.info("Lasted: " + duration);
client.close();
}
}
}
```
I also attach the logs of the scim service and the above simplified application. I also confirm that ldap is working properly... during running above test querying ldap via ldapsearch works as expected.