how-to Define a backup ldap server

[email protected] Fri, 6 Jul 2012 10:09:11 +0200
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <OFFBA63D6F.B0B81AB1-ONC1257A33.002C17CD-C1257A33.002CC934@LocalDomain>

Recently I had to connect to Active Directory. That's works fine, except
one issue to manage: In our infrastructure, the load balancing between main
ldap server and backup must be done by the applications, it's not automatic
via a load balancer or what ever. Is it due to AD, or is it just a
paricularity of our infrastructure, I don't know.
Anyway, looking through spring features, I discovered that it could be
done, without changing any code, jsut spring security-ldap file.
Basically, I just had to replace, in
org.springframework.ldap.core.support.LdapContextSource bean  url by urls,
and to list the differents ldap server.
The detailed documentation is here:
http://wiki.apache.org/portals/Jetspeed2/LDAP-howto

Jérôme


Exposition  La Presse à la Une. De la  Gazette  à Internet  - du 11 avril au 15 juillet 2012 - BnF - François-Mitterrand Avant d'imprimer, pensez à l'environnement.