[PATCH] wildcard usage in automount map

BIRD-nonTRW, Andrew (York Rd) Andrew.Bird-nonTRW at trw.com
Fri Jan 3 15:54:01 GMT 2003


Jerry
	Here is the patch in diff -u format.

Best Regards

Andrew

-----Original Message-----
From: Gerald (Jerry) Carter [mailto:jerry at samba.org] 
Sent: 03 January 2003 15:25
To: BIRD-nonTRW, Andrew (York Rd)
Cc: samba-technical at samba.org
Subject: Re: [PATCH] wildcard usage in automount map


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 3 Jan 2003, BIRD-nonTRW, Andrew (York Rd) wrote:

> Hi All
>     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).

Andrew,

Could you please resend this to me the patch generated by diff -u ? Also,
please include it as an attachment.  Makes it easier to handle and review.

Thanks.




cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 ISBN 0-672-32269-2         "SAMS Teach Yourself Samba in 24 Hours" 2ed
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+FatmIR7qMdg1EfYRAildAJ9tJW9lHgp6sb90qi0g6Pdo6XWMQgCggXFP
qlmRF5IM7EDysdrnpQWLhHo=
=EY/F
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: automount.diff
Type: application/octet-stream
Size: 5722 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030103/2e795bcc/automount.obj


More information about the samba-technical mailing list