[PATCH] wildcard usage in automount map

Andrew Bird (Sphere Systems) ajb at sphere-systems.demon.co.uk
Tue Jan 21 22:31:00 GMT 2003


Richard
	Thanks for the reply. Here is the patch against cvs head as of today.
The original commentry follows

Best Regards

Andrew

>     Here is a little patch to allow usage of the wildcard entry in the
> (YP/NIS+) automount map. Basic operation is a follows; In a 
> automounting environment it is common to use a map like this with a 
> catchall wildcard entry.
> 
> user1    server-a:/path/to/disk1/user1     # explicit entry
> user2    server-b:/path/to/disk2/&           # slightly less work for admin
> - looked up key(user2) is substituted back in for ampersand 
> *           server-c:/path/to/disk3/&           # any user not in the map
> explicitly, gets this entry again with key replacement.
> 
> I have added code for both YP and NIS+ but have not had the 
> opportunity to test NIS+ as I don't have a running NIS+ domain. You 
> will notice the change in substitute.c. The present behavior is not 
> correct in any share but happens to work in the [homes] one since both 
> username and resolved sharename are the same. So currently when using 
> %N / %p in a share called [test] the automount server is looked up in 
> the map with
> key(username) but the path is looked up in the same map with key(test).

On Tuesday 21 Jan 2003 8:04 pm, Richard Sharpe wrote:
> On Tue, 21 Jan 2003, Andrew Bird (Sphere Systems) wrote:
> > Hi all
> > 	I have been following samba-technical for a couple of years now. I have
> > seen in the past, intense debate over whether patches should / or not be
> > included. I am quite surprised that my first code patch to the list has
> > been met with indifference. I provoke neither approval nor disapproval.
> >
> > Guess you're all too busy coding.
>
> Sigh. Sometimes things get dropped.
>
> Can you resend it.
>
> Was it against Samba 2.2.x? That branch is now not receiving any
> attention. If it was against 2.2.x, could you port the patch to the Head
> branch?
>
> Regards
> -----
> Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
> sharpe[at]ethereal.com, http://www.richardsharpe.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: automount.patch.head
Type: text/x-diff
Size: 3068 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030121/adc330ba/automount.patch.bin


More information about the samba-technical mailing list