-----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-----