On Sat, 17 Mar 2007, Ian Kent wrote:

> Let me see if I can clear this up.
> ...
> The first instance of a master map that is found, using nsswitch, is
> used unless it is explicitly specified, such as "/etc/auto.master",
> ...
> The first instance of each autofs managed indirect mount that is found
> in the master map is used. The corresponding map given in the entry is
> looked for by using nsswitch specified sources unless the source is
> explicitly given, such as "/etc/auto.mymap" in which case only that map
> is used. Additional instances of the same indirect mount point in the
> configuration are ignored.
> ...
> Automount key lookups use the same rules as the lookup of maps above and
> the first instance of a map key found is used.

Yes, this does clear it up.  Autofs' philosophy differs from other 
nsswitchable maps, where a key is looked for in potentially every listed 
data source until found.  Whereas, autofs identifies the first map that 
exists, and looks up a key in that map, and if it's absent, you lose.  It 
doesn't go on to look for the key in subsequent data sources such as LDAP, 
unless the plus kludge has been used.  (In any case, the first found 
instance of the key is used and subsequent instances or sources are 
not looked at.)

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA  90095-1555
Email: [EMAIL PROTECTED]    http://www.math.ucla.edu/~jimc (q.v. for PGP key)

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to