Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 065E9200C7D for ; Mon, 1 May 2017 21:47:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 05360160BC0; Mon, 1 May 2017 19:47:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7E12E160BA0 for ; Mon, 1 May 2017 21:47:50 +0200 (CEST) Received: (qmail 22403 invoked by uid 500); 1 May 2017 19:47:49 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 21701 invoked by uid 99); 1 May 2017 19:47:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2017 19:47:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 78661DF999; Mon, 1 May 2017 19:47:48 +0000 (UTC) From: sohami To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #773: DRILL-4335: Apache Drill should support network enc... Content-Type: text/plain Message-Id: <20170501194748.78661DF999@git1-us-west.apache.org> Date: Mon, 1 May 2017 19:47:48 +0000 (UTC) archived-at: Mon, 01 May 2017 19:47:51 -0000 Github user sohami commented on a diff in the pull request: https://github.com/apache/drill/pull/773#discussion_r113376608 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/rpc/security/AuthenticationOutcomeListener.java --- @@ -243,4 +249,46 @@ public SaslMessage process(SaslChallengeContext context) throws Exception { } } } + + private static void handleSuccess(SaslChallengeContext context) throws SaslException { + final ClientConnection connection = context.connection; + final SaslClient saslClient = connection.getSaslClient(); + + try { + // Check if connection was marked for being secure then verify for negotiated QOP value for + // correctness. + final String negotiatedQOP = saslClient.getNegotiatedProperty(Sasl.QOP).toString(); --- End diff -- Null QOP is not auth. Instead when we pass QOP as null the mechanism will use the default QOP value for negotiation which is auth. So getNegotiatedProperty will always return a valid object. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---