mirror of https://github.com/apache/cassandra
Authorizer+authenticator configuration sanity check
This commit is contained in:
parent
ea712bbbe8
commit
ebab9d3919
|
|
@ -219,6 +219,9 @@ public class DatabaseDescriptor
|
|||
if (conf.authorizer != null)
|
||||
authorizer = FBUtilities.newAuthorizer(conf.authorizer);
|
||||
|
||||
if (authenticator instanceof AllowAllAuthenticator && !(authorizer instanceof AllowAllAuthorizer))
|
||||
throw new ConfigurationException("AllowAllAuthenticator can't be used with " + conf.authorizer);
|
||||
|
||||
if (conf.internode_authenticator != null)
|
||||
internodeAuthenticator = FBUtilities.construct(conf.internode_authenticator, "internode_authenticator");
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue