mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-1.2' into cassandra-2.0.0
Conflicts: src/java/org/apache/cassandra/config/DatabaseDescriptor.java
This commit is contained in:
commit
7e02052e3b
|
|
@ -123,6 +123,9 @@ public class Auth
|
|||
*/
|
||||
public static void setup()
|
||||
{
|
||||
if (DatabaseDescriptor.getAuthenticator() instanceof AllowAllAuthenticator)
|
||||
return;
|
||||
|
||||
setupAuthKeyspace();
|
||||
setupUsersTable();
|
||||
|
||||
|
|
|
|||
|
|
@ -193,6 +193,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