On Mon, Jan 10, 2005 at 01:29:23AM -0600, Krishnakumar B wrote:
> 
> For example if I have the following setup:
> 
> 1. I export /export/home from the NFS server, nfs.example.com
> 2. The NFS server is also configured to use the LDAP server to get
>    automount information, i.e, automount: ldap in /etc/nsswitch.conf
> 3. auto_home is setup on the LDAP server to spit out something equivalent to:
> 
> *  -rw,hard,intr,rsize=8192,wsize=8192,nosuid nfs.example.com:/export/home
> 
> Will autofs on nfs.example.com recognize the local mount /export/home and
> use a loopback mount for /home?

Yes.

> If so, do people recommend using the same
> approach (using a direct mount) for /var/spool/mail on nfs.example.com?  If
> not, why not?
> 
> Is there any way to disable specify exclude clauses in the mount options to
> autofs?  For example, can I specify some option to autofs so that on a
> particular machine autofs will not use the automount entry from the
> directory server.

I don't know a way to specify exclude clauses in the mount options, but
you might be able to do something equivalent in the LDAP query itself:
I've written a patch for autofs-4.1.3 to give more flexibility with LDAP
requests; in particular, it allows to specify arbitrary search filter
expressions, so you should be able to include something along the lines of
!(hostname=$MYSELF) into the query, if that is what you need. The patched
version of modules/lookup_ldap.c is available at
  http://www.timof.qipc.org/autofs-4.1.3-patch

Regards,

Timo Felbinger


-- 
Timo Felbinger                  <[EMAIL PROTECTED]>
Quantum Physics Group           http://www.quantum.physik.uni-potsdam.de
Institut fuer Physik            Tel: +49 331 977 1793      Fax: -1767
Universitaet Potsdam, Germany

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to