All of lore.kernel.org
 help / color / mirror / Atom feed
* Map file search list question
@ 2008-11-13 22:23 Peter Schmidt
  2008-11-14  1:54 ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Schmidt @ 2008-11-13 22:23 UTC (permalink / raw)
  To: autofs

(Sorry if this turns up as a double post as I first tried to post from a non list account)

I think what I want is provided by the replicated server feature but I can't get it to work.

I want to search multiple map files that refer to the same mount point.
e.g  in the auto.master file can I do something like:

/home   yp:auto.home1,ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany

If it can't find the entry in auto.home1 then query auto.home2

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

* Re: Map file search list question
  2008-11-13 22:23 Map file search list question Peter Schmidt
@ 2008-11-14  1:54 ` Ian Kent
  2008-11-17 17:16   ` Peter Schmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Kent @ 2008-11-14  1:54 UTC (permalink / raw)
  To: Peter Schmidt; +Cc: autofs

On Thu, 2008-11-13 at 14:23 -0800, Peter Schmidt wrote:
> (Sorry if this turns up as a double post as I first tried to post from a non list account)
> 
> I think what I want is provided by the replicated server feature but I can't get it to work.
> 
> I want to search multiple map files that refer to the same mount point.
> e.g  in the auto.master file can I do something like:
> 
> /home   yp:auto.home1,ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany
> 
> If it can't find the entry in auto.home1 then query auto.home2

Maybe something like (the old method):
/home   multi: yp:auto.home1 -- ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany

should do it.

But you should also be able to use:
In /etc/nsswitch.conf
automount: files nis ldap

and in /etc/auto.master:
/home /etc/auto.home

and in /etc/auto.home
+auto.home1
+auto.home2

If entries in your maps are all fully qualified you should be able to
set "automount: files" in /etc/nsswitch and in /etc/auto.home do:
+yp:auto.home1
+ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany

Ian

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

* Re: Map file search list question
  2008-11-14  1:54 ` Ian Kent
@ 2008-11-17 17:16   ` Peter Schmidt
  2008-11-18  2:27     ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Schmidt @ 2008-11-17 17:16 UTC (permalink / raw)
  To: autofs mailing list

[-- Attachment #1: Type: text/html, Size: 1987 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

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

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

* Re: Map file search list question
  2008-11-17 17:16   ` Peter Schmidt
@ 2008-11-18  2:27     ` Ian Kent
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2008-11-18  2:27 UTC (permalink / raw)
  To: Peter Schmidt; +Cc: autofs mailing list

On Mon, 2008-11-17 at 09:16 -0800, Peter Schmidt wrote:
> Ian Kent wrote: 
> > On Thu, 2008-11-13 at 14:23 -0800, Peter Schmidt wrote:
> >   
> > > (Sorry if this turns up as a double post as I first tried to post from a non list account)
> > > 
> > > I think what I want is provided by the replicated server feature but I can't get it to work.
> > > 
> > > I want to search multiple map files that refer to the same mount point.
> > > e.g  in the auto.master file can I do something like:
> > > 
> > > /home   yp:auto.home1,ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany
> > > 
> > > If it can't find the entry in auto.home1 then query auto.home2
> > >     
> > 
> > Maybe something like (the old method):
> > /home   multi: yp:auto.home1 -- ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany
> > 
> > should do it.
> > 
> > But you should also be able to use:
> > In /etc/nsswitch.conf
> > automount: files nis ldap
> > 
> > and in /etc/auto.master:
> > /home /etc/auto.home
> > 
> > and in /etc/auto.home
> > +auto.home1
> > +auto.home2
> > 
> > If entries in your maps are all fully qualified you should be able to
> > set "automount: files" in /etc/nsswitch and in /etc/auto.home do:
> > +yp:auto.home1
> > +ldap:nisMapName=auto.home2,ou=mygroup,o=mycompany
> > 
> > Ian
> > 
> > 
> >   
> Ian, neither of these work.   Looks like the first suggestion is
> supposed to work with autofs 4 & the second is supported in autofs 5?
> I'm running rhel4 update 7 which has both autofs 4.1.3-234 &
> 5.0.1-0.rc2.88 installed.
> 
> Any other suggestions that I could try?

The first should work with both versions of autofs but I think there was
an outstanding bug with multiple map lookups in rev 88 for autofs5.

How about providing a debug of this for v4.
See http://people.redhat.com/jmoyer for tips on providing this and post
your maps.

Ian

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

end of thread, other threads:[~2008-11-18  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 22:23 Map file search list question Peter Schmidt
2008-11-14  1:54 ` Ian Kent
2008-11-17 17:16   ` Peter Schmidt
2008-11-18  2:27     ` Ian Kent

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.