Created attachment 24860 [details] Patch against trunk r900635 LdapExtSampler has two Hashtables: ldapContexts and ldapConnections. One should cache DirContext instances per thread, the other LDAPExtClient instances. But inspection of the class LDAPExtClient shows, that all of it's method can be declared static. All data needed is always passed in as method arguments. So there's no need to use a Hashtable of instances. Also: the ldapConnections Hashtable wasn't filled correctly. So let's turn to static methods and remove the Hashtable. It seems the ext ldap sampler was broken for more complex bind, search, unbind tests and at least those work with the patch applied. Patch is against trunk, but the same situation occurs in 2.3.4.
Good catch: URL: http://svn.apache.org/viewvc?rev=901444&view=rev Log: Bug 48573 - LDAPExtSampler directory context handling
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2334