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
