Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 38039 invoked from network); 6 Jan 2010 10:25:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2010 10:25:38 -0000 Received: (qmail 53420 invoked by uid 500); 6 Jan 2010 10:25:38 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 53381 invoked by uid 500); 6 Jan 2010 10:25:38 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 53286 invoked by uid 99); 6 Jan 2010 10:25:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2010 10:25:37 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Prashant.Mekaraj@morganstanley.com designates 205.228.53.69 as permitted sender) Received: from [205.228.53.69] (HELO hqmtaint02.ms.com) (205.228.53.69) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2010 10:25:28 +0000 Received: from hqmtaint02 (localhost.ms.com [127.0.0.1]) by hqmtaint02.ms.com (output Postfix) with ESMTP id B3DF1E38AA3 for ; Wed, 6 Jan 2010 05:25:06 -0500 (EST) Received: from ny0030as02 (unknown [170.74.93.68]) by hqmtaint02.ms.com (internal Postfix) with ESMTP id 886A9110037 for ; Wed, 6 Jan 2010 05:25:06 -0500 (EST) Received: from ny0030as02 (localhost [127.0.0.1]) by ny0030as02 (msa-out Postfix) with ESMTP id 59992AB80CB for ; Wed, 6 Jan 2010 05:25:06 -0500 (EST) Received: from HNWEXGOB02.msad.ms.com (hn212c1n1 [10.184.121.167]) by ny0030as02 (mta-in Postfix) with ESMTP id 297305CC02F for ; Wed, 6 Jan 2010 05:25:06 -0500 (EST) Received: from OZWEXHUB02.msad.ms.com (10.174.163.86) by HNWEXGOB02.msad.ms.com (10.184.121.167) with Microsoft SMTP Server (TLS) id 8.1.393.1; Wed, 6 Jan 2010 05:25:04 -0500 Received: from LNWEXMBX0105.msad.ms.com ([10.174.172.10]) by OZWEXHUB02.msad.ms.com ([10.174.163.86]) with mapi; Wed, 6 Jan 2010 10:25:03 +0000 From: "Mekaraj, Prashant" To: Date: Wed, 6 Jan 2010 10:25:02 +0000 Subject: RE: Pluggable authentication question Thread-Topic: Pluggable authentication question thread-index: AcqORaAyMqOlUfioR3yW3vGVKG26aAAc2jAg Message-ID: <2BC67CC22BD6B048A12DD9C4D48EFDD790B3E8174C@LNWEXMBX0105.msad.ms.com> References: <2BC67CC22BD6B048A12DD9C4D48EFDD790B3E8146A@LNWEXMBX0105.msad.ms.com> <4B43A09C.3020507@apache.org> In-Reply-To: <4B43A09C.3020507@apache.org> Accept-Language: en-US Content-Class: urn:content-classes:message Content-Language: en-US Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.35/RELEASE, bases: 06012010 #3094051, status: clean X-Virus-Checked: Checked by ClamAV on apache.org Hi Patrick, Thanks a lot for your reply and the patch. I'll subclass ZooKeeper for = now until 3.3.0 comes out. Unfortunately my Kerberos auth plugin is a thin wrapper around a bunch = of internal libraries that were built to make these sort of integrations = easier. So, there isn't much point in releasing just the plugin. I am, = however, going to try to work out if I can do this using only standard = libraries and if it works, I will be sure to contribute the code back. Thanks for all the effort the zookeeper teams putting in, it is much = appreciated. Regards -prashant > -----Original Message----- > From: Patrick Hunt [mailto:phunt@apache.org] > Sent: 05 January 2010 20:27 > To: zookeeper-user@hadoop.apache.org > Subject: Re: Pluggable authentication question >=20 > Hi Mekaraj, this has been addressed in the trunk: > https://issues.apache.org/jira/browse/ZOOKEEPER-544 > it will be available in 3.3.0 >=20 > You can do similar to this patch prior to 3.3.0 by creating your own > subclass of ZooKeeper and accessing through the cnxn protected field > (similar to how the 544 patch does it, but not as cleanly). >=20 > I'd encourage you to contribute back your work. We'd love to have a > Kerberos auth plugin as part of the release. >=20 > Regards, >=20 > Patrick >=20 > Mekaraj, Prashant wrote: > > Hi, I am using ZooKeeper 3.2.2 and trying to build a custom Kerberos > > based authentication plugin for it. I have the plugin working > > functionally, but I need one additional bit of information that I > > don't see anywhere on the zookeeper API. To make a Kerberos > > connection, the client needs to know the name of the server to set > > the principal correctly. Since zookeeper randomly picks a server = from > > the set of servers passed to it, I was looking to see if there is a > > method that would return the server name it actually connected to > > after it fires the SyncConnected event. > > > > Is there a way to get this information in the C or the Java API ? > > > > Thanks -prashant > > > > = --------------------------------------------------------------------- > ----- > > NOTICE: If received in error, please destroy, and notify sender. > > Sender does not intend to waive confidentiality or privilege. Use of > > this email is prohibited when received in error. We may monitor and > > store emails to the extent permitted by applicable law. > > -------------------------------------------------------------------------= - NOTICE: If received in error, please destroy, and notify sender. Sender = does not intend to waive confidentiality or privilege. Use of this email = is prohibited when received in error. We may monitor and store emails to = the extent permitted by applicable law.