Thanks. This is exactly what I was looking for. Another unrelated question. We have occassionally hit a native OutOfMemoryError when running this for long durations. When we look at that stack dump, we see a ton of these: 3XMTHREADINFO "LDAP Listener Thread (listening on port 35705)" J9VMThread:0x000000000104B800, omrthread_t:0x00007F3F1C37E130, java/lang/Thread:0x00000000C07D67D8, state:R, prio=5 3XMJAVALTHREAD (java/lang/Thread getId:0x14, isDaemon:false) 3XMTHREADINFO1 (native thread ID:0x54D9,...
Thanks for the quick response. The next question I have is I want to return a 50 when using an anonmyous bind for a search request. My understanding is that the InMemoryDirectoryServer does not have fine-grained authorization roles. I was hoping I could leverage the interceptor to do this as well. It would save off the state of the anonymous bind in the processSimpleBindRequest(..) method and reject the search in the processSearchRequest(...) method if we were in an anonymous bind. However; as you...
We use the InMemoryDirectoryServer for testing. It is fantastic btw. I would like to disable anonymous binds to an InMemoryDirectoryServer for a specific set of tests. It is not obvious from the configuration on whether this is possible (and I read some documentation that seems to indicate it is not). I thought perhaps even a request or response interceptor for a simple bind op might work, but didn't see any examples. Is it possible to disable anonymous binds via configuration or via some sort of...