cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4648) Unable to start Cassandra with simple authentication enabled
Date Sun, 18 Nov 2012 12:40:58 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499786#comment-13499786
] 

Sylvain Lebresne commented on CASSANDRA-4648:
---------------------------------------------

Yes, authentication was only one small problem, the big one this ticket solvers is that it's
not a good idea to use the normal path (basically everythign related to replication) to write
to the System tables (that are not replicated anyway).

If there is a need to do normal queries but without authentication checks, I would look into
subclassing ClientState with no-op authentication methods.
                
> Unable to start Cassandra with simple authentication enabled
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-4648
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4648
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0 beta 1
>         Environment: Mac OS X
>            Reporter: John Sanda
>            Assignee: Sylvain Lebresne
>              Labels: security
>             Fix For: 1.2.0 beta 2
>
>         Attachments: 4648.txt
>
>
> I followed the steps for enabling simple authentication as described here, http://www.datastax.com/docs/1.1/configuration/authentication.
I tried starting Cassandra with, 
> cassandra -f -Dpasswd.properties=conf/passwd.properties -Daccess.properties=conf/access.properties
> Start up failed with this exception in my log:
> ERROR [main] 2012-09-11 15:03:04,642 CassandraDaemon.java (line 403) Exception encountered
during startup
> java.lang.AssertionError: org.apache.cassandra.exceptions.InvalidRequestException: You
have not logged in
>         at org.apache.cassandra.cql3.QueryProcessor.processInternal(QueryProcessor.java:136)
>         at org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:298)
>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:203)
>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:386)
>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:429)
> Caused by: org.apache.cassandra.exceptions.InvalidRequestException: You have not logged
in
>         at org.apache.cassandra.service.ClientState.validateLogin(ClientState.java:254)
>         at org.apache.cassandra.service.ClientState.hasColumnFamilyAccess(ClientState.java:235)
>         at org.apache.cassandra.cql3.statements.SelectStatement.checkAccess(SelectStatement.java:105)
>         at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:106)
>         at org.apache.cassandra.cql3.QueryProcessor.processInternal(QueryProcessor.java:124)
>         ... 4 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message