On Wed, Jul 05, 2000 at 10:04:19PM -0700, H. Peter Anvin wrote:
> Hi everyone,
>
> I have looked at ways to support "+" in file maps (only!). As I have
> previously bitched about, there are tons of problems with this syntax;
> one of them being the lack of a map type.
>
> There is no API for handling /etc/nsswitch.conf... and based on what I
> can find out about the NSS system, it doesn't actually buy anything.
>
> I pretty much refuse to implement my own parser for /etc/nsswitch.conf
> to handle this completely idiotic corner case.
>
> Thus, for the people who have been, ahem, requesting this feature, I
> would like feedback how to handle a "+" without the map type.
I think I understand the question...
It seems to me that in most cases a '+' in most of the system files,
eg. /etc/passwd, /etc/group, /etc/auto_master, etc. means include the
follow NIS "thingy" where that "thingy" is somewhat file dependent.
In /etc/passwd:
+fred:0:0:::
means to slurp in the NIS information for user 'fred'.
and:
+@evilgrp:0:0:::
means to slurp in all the NIS password information from all the users
contained in the netgroup 'evilgrp'.
On Sun's and IRIX, we sometimes require a different top level map on
our clients but we do not want to maintain 1000 local /etc/auto_master
files so we use the plus like this:
+auto_master_v2 - for clients which we force to NFS version 2 for
all submaps.
+auto_master_linux - slight diffs for linux machines for example
+auto_master
+auto_master_east - region modifications
So, in /etc/auto.master, I would like the plus to signify that you
slurp in the map from NIS.
Dan
--
- -- -- --- --- --- ---- ---- ----- ----- ----- ----- ------
Dan Mack ([EMAIL PROTECTED])
SGI 651-683-7288 - -- --- --- -----