Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 076E1E572 for ; Tue, 29 Jan 2013 01:24:34 +0000 (UTC) Received: (qmail 62259 invoked by uid 500); 29 Jan 2013 01:24:31 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 62232 invoked by uid 500); 29 Jan 2013 01:24:31 -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 62224 invoked by uid 99); 29 Jan 2013 01:24:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 01:24:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daning@netseer.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 01:24:24 +0000 Received: by mail-la0-f47.google.com with SMTP id fj20so1211060lab.34 for ; Mon, 28 Jan 2013 17:24:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=oN59NWYcW9ZDt5KKZkcqxZQobpeZs6/u/fs9wHrsHN8=; b=WH3es1QKZtcTgLL0HcxTZ/vdr7J83Qw6/gCV06Gg14xSmujQluBB+gkBN7/DgiudHY OqIBwbiZ9iIyw8LVdbwT7o8nsi29KtPekDr8yWNcZ/K+EWdrKZpt9fLf7MLzrRfmPZjv 6X/w5YDo62fxNkpjHDuuFlL0bJ03Y5zbWK7U+kJ0EUc8AfgEAtv6O3qVP5jP0oJ42afg nDKhFbVuhlAQQbcEifTGC0XQfO+nfIeh/V2ZRAqYc2O7GYyjsXauPys9bgs8RXcZlazq mvQciUU1y8YqshVm1mzpTw+Y0VlzoZJxKeQ2P6MsLMpVDWvc1WySOWh0qvm/0kI+mqoG rQYA== MIME-Version: 1.0 X-Received: by 10.112.84.130 with SMTP id z2mr68787lby.65.1359422643831; Mon, 28 Jan 2013 17:24:03 -0800 (PST) Received: by 10.114.109.104 with HTTP; Mon, 28 Jan 2013 17:24:03 -0800 (PST) Date: Mon, 28 Jan 2013 17:24:03 -0800 Message-ID: Subject: 1.2 Authentication From: Daning Wang To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d04016c27c9038204d4633f43 X-Gm-Message-State: ALoCoQk/fh2I0dTDPhOjIfVjC7VwRWBvyg20guwQX6k27b0fXsaG4LyFF/+hg2yw6qiu/7Jt11qj X-Virus-Checked: Checked by ClamAV on apache.org --f46d04016c27c9038204d4633f43 Content-Type: text/plain; charset=ISO-8859-1 We were using SimpleAuthenticator on 1.1.x, it worked fine. While testing 1.2, I have put classes under example/simple_authentication in a jar and copy to lib directory, the class is loaded. however, when I try to connect with correct user/password, it gives me error ./cqlsh s2.dsat103-e1a -u xxxx -p yyyy Traceback (most recent call last): File "./cqlsh", line 2262, in main(*read_options(sys.argv[1:], os.environ)) File "./cqlsh", line 2248, in main display_float_precision=options.float_precision) File "./cqlsh", line 483, in __init__ cql_version=cqlver, transport=transport) File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 143, in connect File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 59, in __init__ File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py", line 157, in establish_connection File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 455, in login File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 476, in recv_login cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why="User xxxx doesn't exist - create it with CREATE USER query first") What does "create it with CREATE USER query first" mean? I put debug information in SimpleAuthenticator class, that showed authentication is passed in the authenticate() method. Thanks, Daning --f46d04016c27c9038204d4633f43 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable We were using=A0SimpleAuthenticator on 1.1.x, it worked fine.

While testing 1.2, I have put classes under example/simple_authentica= tion in a jar and copy to lib directory, the class is loaded. however, when= I try to connect with correct user/password, it gives me error

./cqlsh s2.dsat103-e1a -u xxxx -p yyyy
T= raceback (most recent call last):
=A0 File "./cqlsh", l= ine 2262, in <module>
=A0 =A0 main(*read_options(sys.argv[1= :], os.environ))
=A0 File "./cqlsh", line 2248, in main
=A0 =A0 dis= play_float_precision=3Doptions.float_precision)
=A0 File "./= cqlsh", line 483, in __init__
=A0 =A0 cql_version=3Dcqlver, = transport=3Dtransport)
=A0 File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/conn= ection.py", line 143, in connect
=A0 File "./../lib/cql= -internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 59, in __i= nit__
=A0 File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thri= fteries.py", line 157, in establish_connection
=A0 File &quo= t;./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py= ", line 455, in login
=A0 File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cass= andra/Cassandra.py", line 476, in recv_login
cql.cassandra.t= types.AuthenticationException: AuthenticationException(why=3D"User xxx= x doesn't exist - create it with CREATE USER query first")


What does "create it with CRE= ATE USER query first" mean?

I put debug infor= mation in=A0SimpleAuthenticator class, that showed authentication is passed= in the authenticate() method.

Thanks,

Daning

<= /div> --f46d04016c27c9038204d4633f43--