-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.0.0
-
Component/s: Authentication
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When using Kerberos authentication and credentials are stored in Subject.
Monitor thread is not able to authenticate as while creating
Thread monitorThread = new Thread( monitor, "cluster-" + serverId.getClusterId() + "-" + serverId.getAddress() );
Old AccessControlContext (which contains Kerberos credentials) is not inherited.
So the only workaround is to set javax.security.auth.useSubjectCredsOnly=false and use system ticket (But this is not working in case of using different clusters with different principals at the same time).
The simplest fix is just wrap ServerMonitorRunnable() with AccessController.doPrivileged().
- related to
-
JAVA-2163 MongoClient user should have ability to use non default factory implementations
-
- Closed
-