directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny" <elecha...@gmail.com>
Subject Re: [ApacheDS] Internal vs. external lookups
Date Wed, 30 May 2007 19:43:38 GMT
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 <enriquer9@gmail.com> wrote:
> On 5/30/07, Emmanuel Lecharny <elecharny@gmail.com> 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 =
> "internal".
>
> Enrique
>


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
View raw message