[svlug] What happens if LDAP server is unavailable?
James Sparenberg
james at linuxrebel.us
Fri Sep 10 00:58:32 PDT 2004
On Thu, 2004-09-09 at 22:35, Akbar S. Ahmed wrote:
> Jeremy Hunt wrote:
> >
> >
> > Mark wrote:
> >
> >> Hi,
> >>
> >> I am planning on starting to use LDAP for userid/password and group
> >> management.
> >> Everything is working fine and it was not a big problem setting it up,
> >> but I
> >> am wondering what the effects will be if the machines are for some reason
> >> not able to reach the LDAP server(s) any more.
> >> The most critical processes are mysql databases as well as tomcat and
> >> apache
> >> webservers serving static files and servlets.
> >> Closely following in importance are email servers. What are the
> >> implications
> >> for those processes if the LDAP server is not available any more?
> >>
>
> Isn't this exact problem why many people use LDAP only for user accounts
> (uid,gid >= 500) and leave accounts for server processes in the local
> passwd database.
>
>
> >> Any hints/ideas would be appreciated.
>
> I have never tried this, but I have thought about running slave LDAP
> servers on each host. Each slave would contain only the part of the LDAP
> database that is required for its own operation. The idea behind this is
> to create a local copy of the database so the server could use LDAP
> functionality even when taken offline (i.e. during maintenance). In
> essense, the slave LDAP server would function similarly to Microsoft's
> local LDAP cache in each computer's local registry.
>
> Just a thought. And yes I am aware of the extra overhead running that
> many slave servers would bring, but I still like the idea.
>
> Thanks,
> Akbar
>
I wonder if you do this with local caching. When it can connect to an
LDAP server it does. Then caches this info. If the primary is lost
then it uses whatever it has it's cache, until the LDAP server is found
again. Again just thinking off the top of my head so don't hold me to
this or anything.
James
More information about the svlug
mailing list