From user-return-10473-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Sat Nov 13 01:07:46 2010 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 43350 invoked from network); 13 Nov 2010 01:07:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 01:07:45 -0000 Received: (qmail 72651 invoked by uid 500); 13 Nov 2010 01:08:11 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 72626 invoked by uid 500); 13 Nov 2010 01:08:11 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 72618 invoked by uid 99); 13 Nov 2010 01:08:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 01:08:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.207.44.48] (HELO postrelay-1.pdf.com) (216.207.44.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 01:08:05 +0000 Received: from domo-sjc-001.pdf.com (domo-sjc-001.pdf.com [10.10.9.180]) by postrelay-1.pdf.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id oAD146vW015964 for ; Fri, 12 Nov 2010 17:04:06 -0800 Received: from [127.0.0.1] (sjc-10-10-11-94.pdf.com [10.10.11.94]) by domo-sjc-001.pdf.com (8.13.8/8.13.8) with ESMTP id oAD17iWA006229 for ; Fri, 12 Nov 2010 17:07:44 -0800 Message-ID: <4CDDE4D5.2030109@pdf.com> Date: Fri, 12 Nov 2010 17:07:33 -0800 From: Alaa Zubaidi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: using SimpleAuthenticator is not working Content-Type: multipart/alternative; boundary="------------010007050509080909040008" This is a multi-part message in MIME format. --------------010007050509080909040008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit using SimpleAuthenticator is not working with me in beta 3 I am doing the following: ·In Cassandra.yaml Set authenticator: org.apache.cassandra.auth.SimpleAuthenticator ·Add username and password to passwd.proprties ·Add username to keyspace and column family permission in access.proprties ·Add the path for passwd.proprties and access.proprties to Cassandra.bat set CASSANDRA_PARAMS=-Dcassandra -Dcassandra-foreground=yes -Dpasswd.properties=E:\Cassandra\Cass07b3\apache-cassandra-0.7.0-beta3\conf\passwd.properties -Daccess.properties=E:\Cassandra\Cass07b3\apache-cassandra-0.7.0-beta3\conf\access.properties ·Use login() to login to Cassandra in the application: Map creds = new HashMap(); creds.put("user1", "pwd1"); AuthenticationRequest Auth = newAuthenticationRequest(creds); _client.login(Auth); its giving me an error, with no message, and if I try to do any thing its giving me "I am not logged in" error. Is there any thing I am missing? Thanks, -- Alaa Zubaidi --------------010007050509080909040008 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit using SimpleAuthenticator is not working with me in beta 3

I am doing the following:

·         In Cassandra.yaml Set
authenticator: org.apache.cassandra.auth.SimpleAuthenticator
·         Add username and password to passwd.proprties
·         Add username to keyspace and column family permission in access.proprties
·         Add the path for passwd.proprties and access.proprties to Cassandra.bat
set CASSANDRA_PARAMS=-Dcassandra -Dcassandra-foreground=yes
 -Dpasswd.properties=E:\Cassandra\Cass07b3\apache-cassandra-0.7.0-beta3\conf\passwd.properties
 -Daccess.properties=E:\Cassandra\Cass07b3\apache-cassandra-0.7.0-beta3\conf\access.properties

·         Use login() to login to Cassandra in the application:
Map<String, String> creds = new HashMap<String, String>();
creds.put("user1", "pwd1");
AuthenticationRequest Auth = new  AuthenticationRequest(creds);
_client.login(Auth);

its giving me an error, with no message, and if I try to do any thing its giving me "I am not logged in" error.
Is there any thing I am missing?

 
Thanks,
--
Alaa Zubaidi --------------010007050509080909040008--