Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 280EB7BD0 for ; Tue, 1 Nov 2011 21:39:54 +0000 (UTC) Received: (qmail 19572 invoked by uid 500); 1 Nov 2011 21:39:54 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 19547 invoked by uid 500); 1 Nov 2011 21:39:54 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 19506 invoked by uid 99); 1 Nov 2011 21:39:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 21:39:54 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 21:39:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D615B32D662 for ; Tue, 1 Nov 2011 21:39:32 +0000 (UTC) Date: Tue, 1 Nov 2011 21:39:32 +0000 (UTC) From: "Vinod Kone (Updated) (JIRA)" To: mesos-dev@incubator.apache.org Message-ID: <945713162.47755.1320183572878.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <873252229.46824.1320171574733.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (MESOS-54) Mesos ZooKeeper authentication is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Kone updated MESOS-54: ---------------------------- Attachment: 0001-Detector-Auth-fix.patch > Mesos ZooKeeper authentication is broken > ---------------------------------------- > > Key: MESOS-54 > URL: https://issues.apache.org/jira/browse/MESOS-54 > Project: Mesos > Issue Type: Bug > Reporter: Vinod Kone > Attachments: 0001-Detector-Auth-fix.patch > > > In src/zookeeper/zookeeper.cpp > authenticate() takes (scheme,credentials) as arguments, but this function is called with (username,password). this results in the client trying to authenticate with szk with scheme 'username' and failing. > Relevant code snippets. > ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > int ZooKeeper::authenticate(const string& username, const string& password) > { #ifndef USE_THREADED_ZOOKEEPER return process::call(impl->self(), &ZooKeeperImpl::authenticate, cref(username), cref(password)); #else Promise promise = impl->authenticate(username, password); return promise.future().get(); #endif // USE_THREADED_ZOOKEEPER } > ::::::::::::::::::::::::::::::: > Promise authenticate(const string& scheme, const string& credentials) > { > Promise promise; > tuple >* args = new tuple >(promise); > int ret = zoo_add_auth(zh, scheme.c_str(), credentials.data(), > credentials.size(), voidCompletion, args); > if (ret != ZOK) { promise.set(ret); delete args; } > return promise; > } > ::::::::::::::::::::::::::::::: -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira