From user-return-34645-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Mon Jun 17 21:13:04 2013 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 DB44F10C02 for ; Mon, 17 Jun 2013 21:13:04 +0000 (UTC) Received: (qmail 34097 invoked by uid 500); 17 Jun 2013 21:13:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 34043 invoked by uid 500); 17 Jun 2013 21:13:02 -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 34030 invoked by uid 99); 17 Jun 2013 21:13:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 21:13:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.213.163] (HELO nm1-vm1.bullet.mail.bf1.yahoo.com) (98.139.213.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 21:12:54 +0000 Received: from [98.139.212.145] by nm1.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jun 2013 21:12:33 -0000 Received: from [98.139.212.248] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jun 2013 21:12:33 -0000 Received: from [127.0.0.1] by omp1057.mail.bf1.yahoo.com with NNFMP; 17 Jun 2013 21:12:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 815838.85229.bm@omp1057.mail.bf1.yahoo.com Received: (qmail 41872 invoked by uid 60001); 17 Jun 2013 21:12:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1371503553; bh=2XIFn344CN8aYljP6UzKzRYPcGsBIVN5zJn30fNcRXE=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=y1a4rfaX9n58jXMNy308tV7tkdcOUAOAlbWCcwZbDp4yYUdbYJXY3u/CdSEzleO9bM3LyqjJ/zb0mtCba9TS5gyy93PPjtVu5Yi64Kn+0f2ZCPuFpQzQVjjrAZYMTULYErSB+8AdYPbkCm1spgM48TFz/PEQJbNmOGHTVtObFv8= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=dQllCj+79pEfTNuf3aYmY2F0Bzuf80pwmVMZYoUhnxJldAf7mN8GscG55h3pWXjnGgasLuWXRm1g6bsVsGckCpy7nrv/w/Eob1Lu/uRgxTpIdCk2LTEBGlZwKsxeh5GHo7qpf0XfvjU02IkByc4eNsVrlm33dZ1h58jSWq2z+T0=; X-YMail-OSG: DogIiAIVM1nJgHi0MBTKzl.jRc_tN75XGPmiHa62j1VP7Ek CbE8pzXvRmRttjaEFIVLI Received: from [209.131.62.121] by web142802.mail.bf1.yahoo.com via HTTP; Mon, 17 Jun 2013 14:12:33 PDT X-Rocket-MIMEInfo: 002.001,SGksCsKgCsKgIFdlIGhhdmUgYSBjdXN0b23CoCBhdXRoZW50aWNhdG9yIHRoYXQgd29ya3Mgd2VsbCB3aXRoIENhc3NhbmRyYSAxLjEuNS4KV2hlbiB1cGdyYWRpbmcgdG8gQyogMS4yLjUsIGF1dGhlbnRpY2F0aW9uIGZhaWxlZC4gVHVybiBvdXQgdGhhdCBpbiBDbGllbnRTdGF0ZS5sb2dpbiwgd2UgbWFrZSBhIGNhbGwgdG8gQXV0aC5pc0V4aXN0aW5nVXNlcih1c2VyLmdldE5hbWUoKSkKaWYgdGhlIEF1dGhlbnRpY2F0ZWRVc2VyIGlzIG5vdCBBbm9ueW1vdXMgdXNlci4gVGhpcyBpc0V4aXN0aW5nVXNlciABMAEBAQE- X-Mailer: YahooMailWebService/0.8.147.553 Message-ID: <1371503553.41477.YahooMailNeo@web142802.mail.bf1.yahoo.com> Date: Mon, 17 Jun 2013 14:12:33 -0700 (PDT) From: Bao Le Reply-To: Bao Le Subject: Custom 1.2 Authentication plugin will not work unless user is in system_auth.users column family To: "user@cassandra.apache.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1397251415-1774035831-1371503553=:41477" X-Virus-Checked: Checked by ClamAV on apache.org --1397251415-1774035831-1371503553=:41477 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=A0=0A=A0 We have a custom=A0 authenticator that works well with Cass= andra 1.1.5.=0AWhen upgrading to C* 1.2.5, authentication failed. Turn out = that in ClientState.login, we make a call to Auth.isExistingUser(user.getNa= me())=0Aif the AuthenticatedUser is not Anonymous user. This isExistingUser= method does a query on system_auth.users and if it cannot find the name th= ere, throw an exception.=0A=0A=A0 If our authentication model involves exch= anging data on the fly and not relying on pre-created users, how do we bypa= ss this check? Should we =0Aadd a method on IAuthenticator to specify wheth= er user look-up is needed or not?=0A=0ABao --1397251415-1774035831-1371503553=:41477 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
 
&nbs= p; We have a custom  authenticator that works well with Cassandra 1.1.= 5.
When upgrading to C* 1.2.5, authentication failed. Turn out that in C= lientState.login, we make a call to Auth.isExistingUser(user.getName())
= if the AuthenticatedUser is not Anonymous user. This isExistingUser method = does a query on system_auth.users and if it cannot find the name there, thr= ow an exception.

  If our authentication model involves exchang= ing data on the fly and not relying on pre-created users, how do we bypass = this check? Should we
add a method on IAuthenticator to specify whether= user look-up is needed or not?

Bao



--1397251415-1774035831-1371503553=:41477--