Created attachment 24824 [details] Patch to fix NPE There is a NullPointerException being thrown when the server attempts to look up a non-existent user in JNDIRealm. Specifically, the getUser(DirContext, String) method will return null if the user is not found. However, getPrincipal(DirContext, String) will not check to see if the result from getUser() is null. I'm attaching a patch from the 6.0.20 tag but this should also be backported to the 5.5.x branch as well because the issue exists there.
Created attachment 24825 [details] Patch to fix NPE
Many thanks for the patch. It has been applied to trunk and proposed for 6.0.x and 5.5.x.
Thanks again for the patch. It has been applied to 6.0.x and will be included in 6.0.23 onwards.
Applied to 5.5, will be in 5.5.29 onwards. Thank you.