Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 57856 invoked from network); 30 May 2007 19:44:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 19:44:02 -0000 Received: (qmail 55373 invoked by uid 500); 30 May 2007 19:44:06 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 55172 invoked by uid 500); 30 May 2007 19:44:05 -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 55157 invoked by uid 99); 30 May 2007 19:44:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 12:44:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of elecharny@gmail.com designates 66.249.90.183 as permitted sender) Received: from [66.249.90.183] (HELO ik-out-1112.google.com) (66.249.90.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 12:43:59 -0700 Received: by ik-out-1112.google.com with SMTP id b35so51542ika for ; Wed, 30 May 2007 12:43:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FZdyFVXJNhh23qp5CFuIQw5ikPbrd0Dlh03hD/hLLHl8qRNI7+59W7L6QooqDZLsBOPFmrhOPCdTENt+ek98FwdvR6MYvWSRjQhO9IVla97bwzvV/HV5nc/BqQzN812C2AyxKepiwc64lqRoJubKi4+S6jsd2rog6Ik0HAZizFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OCcPXyIXPSZJtQ2J6cy4iqmt+HVJrYndQK2g3GGZhEUqD7LWtddnOyIqhWlsX0boObELTCWK4h1emilzUAeov2WsmWMkvt62ETxWCWlHNCCjIft72pWKEfy9eUGzV0jakyNkYxyUOxjmDMPNeG4vnsWWm4ju45qiBQrPpaNrq/s= Received: by 10.78.118.5 with SMTP id q5mr2348036huc.1180554218378; Wed, 30 May 2007 12:43:38 -0700 (PDT) Received: by 10.78.42.13 with HTTP; Wed, 30 May 2007 12:43:38 -0700 (PDT) Message-ID: Date: Wed, 30 May 2007 21:43:38 +0200 From: "Emmanuel Lecharny" Reply-To: elecharny@iktek.com To: "Apache Directory Developers List" , erodriguez@apache.org Subject: Re: [ApacheDS] Internal vs. external lookups In-Reply-To: <568753d90705301217o6867503u1977425553370d4e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <568753d90705241516x75b659fdl3b08eba45817a4cc@mail.gmail.com> <568753d90705291954w68e7b205j1306537e246763fa@mail.gmail.com> <568753d90705301217o6867503u1977425553370d4e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Using a special parameter and adding to to JNDI env seems a good way to do it. If this flag is set, then it's an internal call (no need to expose such a parameter to external users, IMHO) Emmanuel On 5/30/07, Enrique Rodriguez wrote: > On 5/30/07, Emmanuel Lecharny wrote: > > ... > > another solution would be to add a flag to the OperationContext which > > is passed through the interceptors, to tell if the request is internal > > or not. > > > > Those contexts have been created for such purposes. > > How would this flag get set when connecting via JNDI? Today all the > protocol providers use JNDI with CoreContextFactory. We use > CoreContextFactory to bind users via LDAP (external) as well as > protocol providers (internal) so we couldn't simply have all > CoreContextFactory initial contexts set isInternal() to "true." We > would need to cast to an interface to setInternal(true) or we would > need a env parameter, such as Context.SECURITY_AUTHENTICATION =3D > "internal". > > Enrique > --=20 Regards, Cordialement, Emmanuel L=E9charny www.iktek.com