Return-Path: X-Original-To: apmail-archiva-dev-archive@www.apache.org Delivered-To: apmail-archiva-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9911A8FA2 for ; Wed, 24 Aug 2011 17:45:11 +0000 (UTC) Received: (qmail 68958 invoked by uid 500); 24 Aug 2011 17:45:11 -0000 Delivered-To: apmail-archiva-dev-archive@archiva.apache.org Received: (qmail 68817 invoked by uid 500); 24 Aug 2011 17:45:10 -0000 Mailing-List: contact dev-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@archiva.apache.org Delivered-To: mailing list dev@archiva.apache.org Received: (qmail 68809 invoked by uid 99); 24 Aug 2011 17:45:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2011 17:45:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brent.atkinson@gmail.com designates 209.85.210.182 as permitted sender) Received: from [209.85.210.182] (HELO mail-iy0-f182.google.com) (209.85.210.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2011 17:45:05 +0000 Received: by iye1 with SMTP id 1so2431257iye.13 for ; Wed, 24 Aug 2011 10:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1c74mUo6tYAyhfetEwH/HA3jveOL1Gfx3b97ZOqZY2Q=; b=hfOa6JECvSmmY0rHnE1cyL7hphgGawr+lspHUoHUWHF87M/esUki43iROAC7DGOhAm K5qVSF4ETrX65HZ77xSMA/+HB/I4/oU/NklONwz/+ALqYjwzEkw5RDaJgnbPHJVUMRiU tJWffgYwCdArdu9qetKTO/KhQn5D6c4Z809Zc= MIME-Version: 1.0 Received: by 10.43.47.6 with SMTP id uq6mr4327817icb.145.1314207884238; Wed, 24 Aug 2011 10:44:44 -0700 (PDT) Received: by 10.42.179.1 with HTTP; Wed, 24 Aug 2011 10:44:44 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Aug 2011 13:44:44 -0400 Message-ID: Subject: Re: Archiva issue with LDAP (MRM-1488) From: Brent Atkinson To: dev@archiva.apache.org Content-Type: multipart/alternative; boundary=bcaec5299fc119dd9004ab43de3b --bcaec5299fc119dd9004ab43de3b Content-Type: text/plain; charset=ISO-8859-1 Hi everyone, I actually ran into this when fixing the connection leaks. I realized it was probably building in too many assumptions, but I created and held onto the LdapCtxFactory in redback's LdapConnection for a very specific reason: connection pooling. The sun JNDI ldap implementation can pool connections sharing the same credentials *and config options* as long as they are created from the same LdapCtxFactory. http://download.oracle.com/javase/jndi/tutorial/ldap/connect/pool.html Brent On Wed, Aug 24, 2011 at 8:57 AM, Wendy Smoak wrote: > On Wed, Aug 24, 2011 at 2:45 AM, Deng Ching wrote: > > > We're planning to use EhCache for this so we can also set a TTL > > (time-to-live) for the cached objects. A password change done from the > > webapp would flush the user in the cache. > > If you're using LDAP, would users be doing password changes from the > webapp? > > Making that TTL configurable by the admin would be good, then they can > trade off between extra calls to LDAP and 'how come my new password > doesn't work?'. > > -- > Wendy > --bcaec5299fc119dd9004ab43de3b--