From: Graham B. <gb...@po...> - 2002-01-30 13:21:49
|
Several people have ask for this in the past. Try the attached patch. It accepts an array ref for the host and will try each in turn. Graham. On Wed, Jan 30, 2002 at 11:22:01AM +0100, Vincent MATHIEU wrote: > Hi, > > I use the perldap module to acces LDAP server (OpenLDAP). > > I use replica servers LDAP and I wish to be able to access the backup server in case of dysfunction > of the master server. > > With other api, it is possible to indicate in the server names a list of servers. > > for exemple : > $ldap = Net::LDAP->new(ldap.univ.fr:392,ldap2.univ-nancy2.fr:395); > > if ldap.univ-nancy2.fr:392 is unaccessible, then an attempt is made for access to ldap2.univ-nancy2.fr:395 > > It is not possible actualy do do this with the Net::LDAP module. > > Is it possible to modify the module so that it accepts this possibility (I can propose the patch) either I should create a class perl which inherits from the class Net::LDAP? > > Thanks > > > -- > Vincent MATHIEU > CRI - Universite NANCY 2 | Email : Vin...@un... > Pole Lorrain de Gestion | Tel : (33) 03.83.39.64.06 > 13, Rue Michel Ney - C.O. 75 | Fax : (33) 03.83.39.64.43 > 54013 Nancy Cedex. FRANCE |