Hello!
I'm trying to debug a specific issue that is related to slow queries, so I need a way how to simulate slow LDAP server responses.
It will be optimal if I can set a specific number of seconds per query shape, but a general (configured) delay is fine too.
I've already tried the retcode overlay, and I think it only simulates the slow bind scenarios and not the slow query responses.
Here's an excerpt from my slapd.conf:
overlay retcode
retcode-parent "ou=Users,dc=acme,dc=qa"
#retcode-item "uid=mdb" 0x00
retcode-item "uid=mdb" 0x00 sleeptime=4
retcode-item "cn=user1" 0x00
retcode-item "cn=user2" 0x00
retcode-item "cn=user3" 0x00
retcode-item "cn=user4" 0x00
retcode-item "cn=user5" 0x00
If there's no way this can be configured using existing options in OpenLDAP, I appreciate advice wherein the source code I need to insert the sleep construct. Ideally, it should work with the retcode overlay, so that I can test the slow bind scenarios and slow query responses at the same time.
Thanks,
Andrey.