All of lore.kernel.org
 help / color / mirror / Atom feed
* No include of NIS maps in automounter maps possible any more?
@ 2006-11-30 13:45 Frank Thommen
  2006-11-30 14:42 ` Jeff Moyer
  2006-11-30 14:51 ` Ian Kent
  0 siblings, 2 replies; 5+ messages in thread
From: Frank Thommen @ 2006-11-30 13:45 UTC (permalink / raw)
  To: autofs

Hi,

I hope this question is not too basic for this list, but I could not 
find any answer in the list archives or through friend google.

With automount version 4.1.3-187 (running on CentOS 4.4) I could have an 
automounter map (not auto.master) to be like:

key1   host1:/path1
key2   host2:/path2
+map.in.nis

This way I could add specific local mounts to a generally available NIS 
map or override NIS given keys with my own ones.

With automount 4.1.4-33 (on Fedora Core 5) this doesn't work any more. 
The additional map is simply ignored.  I tried with '+map.in.nis' and 
'+yp:map.in.nis' to no avail.

'automount' in nsswitch.conf is on 'files nis' in both cases.


Is this a bug or a wanted feature in 4.1.4?  Is there an other way to 
*combine* nis and local maps for automounting?  We have configured a lot 
of hosts with above setup and whith the current OS-updates this starts 
to break.


Any hints or pointers are appreciated.

Thanks you very much

    frank

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No include of NIS maps in automounter maps possible any more?
  2006-11-30 13:45 No include of NIS maps in automounter maps possible any more? Frank Thommen
@ 2006-11-30 14:42 ` Jeff Moyer
  2006-11-30 15:17   ` Frank Thommen
  2006-11-30 14:51 ` Ian Kent
  1 sibling, 1 reply; 5+ messages in thread
From: Jeff Moyer @ 2006-11-30 14:42 UTC (permalink / raw)
  To: Frank Thommen; +Cc: autofs

==> On Thu, 30 Nov 2006 14:45:11 +0100, Frank Thommen <fthommen@embl.de> said:

Frank> Hi,
Frank> I hope this question is not too basic for this list, but I could not 
Frank> find any answer in the list archives or through friend google.

Frank> With automount version 4.1.3-187 (running on CentOS 4.4) I
Frank> could have an automounter map (not auto.master) to be like:

Frank> key1   host1:/path1
Frank> key2   host2:/path2
Frank> +map.in.nis

Frank> This way I could add specific local mounts to a generally available NIS 
Frank> map or override NIS given keys with my own ones.

Frank> With automount 4.1.4-33 (on Fedora Core 5) this doesn't work any more. 
Frank> The additional map is simply ignored.  I tried with '+map.in.nis' and 
Frank> '+yp:map.in.nis' to no avail.

Frank> 'automount' in nsswitch.conf is on 'files nis' in both cases.


Frank> Is this a bug or a wanted feature in 4.1.4? We have
Frank> configured a lot of hosts with above setup and whith the
Frank> current OS-updates this starts to break.

I just posted some patches that implement this for 4.1.4.  Ian's
pretty busy with v5, so I'm not sure when they'll be included.  For
now, it's safe to rebuild your centos RPM on FC-5.

Frank> Is there an other way to *combine* nis and local maps for
Frank> automounting? Any hints or pointers are appreciated.

Well, you could use the multi-map syntax.  In auto.master, you would
have something like the following:

/foo  multi: file /etc/auto.foo -- yp map.in.nis

-Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No include of NIS maps in automounter maps possible any more?
  2006-11-30 13:45 No include of NIS maps in automounter maps possible any more? Frank Thommen
  2006-11-30 14:42 ` Jeff Moyer
@ 2006-11-30 14:51 ` Ian Kent
  2006-11-30 15:29   ` Frank Thommen
  1 sibling, 1 reply; 5+ messages in thread
From: Ian Kent @ 2006-11-30 14:51 UTC (permalink / raw)
  To: Frank Thommen; +Cc: autofs

On Thu, 2006-11-30 at 14:45 +0100, Frank Thommen wrote:
> Hi,
> 
> I hope this question is not too basic for this list, but I could not 
> find any answer in the list archives or through friend google.
> 
> With automount version 4.1.3-187 (running on CentOS 4.4) I could have an 
> automounter map (not auto.master) to be like:
> 
> key1   host1:/path1
> key2   host2:/path2
> +map.in.nis
> 
> This way I could add specific local mounts to a generally available NIS 
> map or override NIS given keys with my own ones.
> 
> With automount 4.1.4-33 (on Fedora Core 5) this doesn't work any more. 
> The additional map is simply ignored.  I tried with '+map.in.nis' and 
> '+yp:map.in.nis' to no avail.

The Fedora autofs is very close to the upstream autofs and plus map
inclusion and nsswitch integration is not present in version 4.

Jeff Moyer has done a lot of work on this and is working to push the
RHEL autofs patches upstream now. However, I'm still neck deep in fixing
version 5 bugs so it's a bit hard to get an update to version 4 out.

I think your only option at the moment is to use the RHEL or CentOS
version and exclude autofs from yum updates.

> 
> 'automount' in nsswitch.conf is on 'files nis' in both cases.

Doesn't matter what you put in nsswitch.conf.

> 
> 
> Is this a bug or a wanted feature in 4.1.4?  Is there an other way to 
> *combine* nis and local maps for automounting?  We have configured a lot 
> of hosts with above setup and whith the current OS-updates this starts 
> to break.

Focus is version 5 at the moment and plus map inclusion and nsswitch
integration are standard features.

> 
> Any hints or pointers are appreciated.

Get FC6 if you want to try out version 5.

> 
> 
> Thanks you very much
> 
>     frank
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No include of NIS maps in automounter maps possible any more?
  2006-11-30 14:42 ` Jeff Moyer
@ 2006-11-30 15:17   ` Frank Thommen
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Thommen @ 2006-11-30 15:17 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: autofs

Hi Jeff,

> Frank> Is there an other way to *combine* nis and local maps for
> Frank> automounting? Any hints or pointers are appreciated.
> 
> Well, you could use the multi-map syntax.  In auto.master, you would
> have something like the following:
> 
> /foo  multi: file /etc/auto.foo -- yp map.in.nis

Thanks. Great solution.  It's pity the manpages don't mention it ;-)

    frank

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No include of NIS maps in automounter maps possible any more?
  2006-11-30 14:51 ` Ian Kent
@ 2006-11-30 15:29   ` Frank Thommen
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Thommen @ 2006-11-30 15:29 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs

Hi Ian,

>> [...]
> Jeff Moyer has done a lot of work on this and is working to push the
> RHEL autofs patches upstream now. However, I'm still neck deep in fixing
> version 5 bugs so it's a bit hard to get an update to version 4 out.

No problem. The multi-map syntax as proposed by Jeff works perfectly and 
I'll stick with that for the time being.


> [...]
>> Any hints or pointers are appreciated.
> 
> Get FC6 if you want to try out version 5.

I'll first sleep over it ;-)


Thanks

    frank

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-30 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 13:45 No include of NIS maps in automounter maps possible any more? Frank Thommen
2006-11-30 14:42 ` Jeff Moyer
2006-11-30 15:17   ` Frank Thommen
2006-11-30 14:51 ` Ian Kent
2006-11-30 15:29   ` Frank Thommen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.