If the DN, which will be inserted into the search filter (for example DN of user in group search), contains a back slash character, the search won't work. This back slash character must be escaped according RFC2254.
Yes, this is indeed a bug. I will look into writing up a patch for it.
Created attachment 9506 [details] Patch file with fix to do RFC 2254 encoding
Created attachment 9507 [details] diff against JNDIRealmTestCase to unit test new RFC 2254 code
*** Bug 16541 has been marked as a duplicate of this bug. ***
Just to confirm - this also would be a problem with 5? (Since the JNDIRealm code is the same) - the patch looks ok to me. I'll try to patch on Friday.
Fixed. Thanks jeff!
Patch also ported to 5 . (So it will be in 5.0.17 whenever it is built)