When log in using CLIENT-CERT and MemoryRealm, the certificate's subject is used to match the user name to log the user in. But when using the JDBCRealm , it fails, because the getPrincipal() method always return null!!!.
Assign to myself for investigation.
The issue here is a subset of the issues in the duplicate. *** This bug has been marked as a duplicate of 19767 ***