cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4648) Unable to start Cassandra with simple authentication enabled
Date Sat, 17 Nov 2012 21:38:12 GMT

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

Aleksey Yeschenko commented on CASSANDRA-4648:
----------------------------------------------

We still need something like old processInternal (not restricting queries to the local node).
Had to reimplement pre-change processInternal in NativeAuthority (#4874), will have to do
the same in NativeAuthenticator unless processInternal gets changed (or another method like
it is added).

It is my understanding that this patch does more than just skipping authorization (which is
achieved easier by simply moving isInternall check in has*Access higher, before validateLogin
happens).
                
> 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