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 AE1AB2009EE for ; Wed, 18 May 2016 08:30:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ACBB41609B1; Wed, 18 May 2016 06:30:15 +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 0EB4F160A1B for ; Wed, 18 May 2016 08:30:14 +0200 (CEST) Received: (qmail 11327 invoked by uid 500); 18 May 2016 06:30:14 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 11124 invoked by uid 99); 18 May 2016 06:30:14 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2016 06:30:14 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E60142C1F64 for ; Wed, 18 May 2016 06:30:13 +0000 (UTC) Date: Wed, 18 May 2016 06:30:13 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DIRSERVER-2145) A BIND request will do 2 lookups of the entry trying to bind MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 May 2016 06:30:15 -0000 Emmanuel Lecharny created DIRSERVER-2145: -------------------------------------------- Summary: A BIND request will do 2 lookups of the entry trying to bind Key: DIRSERVER-2145 URL: https://issues.apache.org/jira/browse/DIRSERVER-2145 Project: Directory ApacheDS Issue Type: Improvement Affects Versions: 2.0.0-M21 Reporter: Emmanuel Lecharny Fix For: 2.0.0-M22 When we process a {{BindRequest}}, we first fetch the principal : {noformat} public void handleSimpleAuth( LdapSession ldapSession, BindRequest bindRequest ) throws Exception { ... principalEntry = directoryService.getAdminSession().lookup( bindRequest.getDn() ); ... {noformat} then we do the actual bind : {noformat} ... directoryService.getOperationManager().bind( bindContext ); ... {noformat} At this point, we have not kept a trace of the entry we just fetched previously. This is a waste of CPU... -- This message was sent by Atlassian JIRA (v6.3.4#6332)