Apache Directory Project - How to separate LDAP protocol handler?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > May 2006 > How to separate LDAP protocol handler?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to separate LDAP protocol handler?
Jaka Jaksic

2006-05-17, 1:11 pm

Hi!


We've been trying, with no luck, to accomplish something that should be
quite simple. What we want to do is to create a tiny LDAP server serving
simple read-only content (a list of users) from our database. According to
ApacheDS homepage, that should be easily doable by using only the LDAP
protocol provider, which is supposed to be nicely separable from the rest of
the product. However, everything seems to be very tightly coupled, to the
point where I find this seemingly simple task pretty much impossible to do
(at least without nasty hacking).

I'm pretty sure we're missing something here, but we couldn't find any
useful documentation on this topic, and also the link to Alex's presentation
on ApacheCon04 (which is supposed explain the architecture and integration
in greater detail) doesn't work.

Here's what we found out about the code so far, which I think prevents the
protocol handler from being used separately:

1. LdapProtocolHandler creates the handlers in a static block and places
them in an unmodifiable map, which prevents handlers from being replaced.

2. SearchHandler seems to depend on ServerLdapContext (ctx = (
ServerLdapContext ) unknown), which prevents using another LdapContext
implementation.

3. DefaultDirectoryService and DefaultDirectoryServiceConfiguration are
package private and rewriting them from scratch seems like a lot of
unnecessary work.

All we would really need is to just plug in our own LdapContext or
SearchHandler and remove the underlying directory implementation. Or
something which would provide the same effect.

I'll be very grateful for any kind of advice!


Thanks and regards,
Jaka


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com