OK, automount with ldap maps and replicas works fine now :-)

No need to patch lookup_ldap to look for more than one servername in 
autofs package as I did ... , the only thing to do is to configure 
correctly /etc/openldap/ldap.conf !!

indeed that's where automount lookup look for the ldap servers name, not 
in /etc/ldap.conf :-( !.

So I just added in my /etc/openldap/ldap.conf my replicas:
$grep HOST /etc/openldap/ldap.conf
HOST corne.int-evry.fr corbeau.int-evry.fr
  
an removed the specification of an ldap servername in my ldap auto.master 
entry.

from
automountInformation: ldap:openldap.int-evry.fr:ou=auto.mci,ou=automount
to
automountInformation: ldap:ou=auto.mci,ou=automount,dc=int-evry,dc=fr

For a detailed doc: 
http://www.int-evry.fr/mci/user/procacci/ldap/Ldap_int007.html#toc27

Thanks. 

On Wed, 13 Mar 2002, Nalin Dahyabhai wrote:

> On Wed, Mar 13, 2002 at 06:31:23PM +0100, [EMAIL PROTECTED] wrote:
> > while reading deeper in "man automount" I read:
> > 
> > "ldap   map  names  are   of   the   form   [server�name:]basedn,  where 
> > the optional servername is the name of the LDAP server to query ..."
> > 
> > I am curious about the "optional servername", what if I don't mention any 
> > servername, which one automount lookup_ldap will look for ? /etc/ldap.conf 
> > ? that would be great for a failover to an ldap replica server when 
> > master is down to keep autofs working :-)
> > 
> > Can anyone confirm that fonctionnality ?
> 
> I can't confirm it just now, but without a server, the ldap lookup
> module will pass NULL to libldap for the server host name, and in that
> case OpenLDAP will use the HOST value defined in its config file (which
> is usually /etc/openldap/ldap.conf).
> 
> Nalin
> 
> 

-- 
Jehan Procaccia
Institut National des Telecommunications| Email: [EMAIL PROTECTED] 
MCI, Moyens Communs Informatiques       | Tel  : +33 (0) 160764436 
9 rue Charles Fourier 91011 Evry France | Fax  : +33 (0) 160764321


Reply via email to