1 # Sample Rules for the nis_update Script
3 # Copy this file into a subdirectory with your NIS domain's name as
4 # .nisupdate.conf and edit it there to reflect the maps you have.
6 # For every possible transformation complex ( e.g. passwd+shadow ->
7 # *.byname+.byuid) there is a rule that is identified by a free-form string
8 # that is printed upon its execution. The contents of $rule{"$idstr"} determine
9 # the actual action to be taken.
11 # Rule syntax: "<func> <src>[,<src2>,...] <dest>[,<dest2>,...] [func-options]"
12 # options must be last because they're optional :-)
13 # they are a comma separated list for each target:
15 # 'n': exclude key field from value string
16 # ':': field separator (group, no shadow). passwd is special anyway.
18 # default is "0" for single DBs, "0,1" for dual DBs (*.byname,*.bynumber)
20 # I assume you want at least passwd and group.
21 # Un-comment the rest or add your own.
24 # "mkdb aliases mail.aliases n0:";
27 # "mkdb amd.home amd.home n0";
29 # $rule{"amd.master"} =
30 # "mkdb amd.master amd.master n0";
33 # "mkdb2 ethers ethers.byname,ethers.byaddr ";
36 "mkdb2 group group.bygid,group.byname 2:,0:";
38 # $rule{"group.shadow"} =
39 # "pwunconv group,gshadow group.bygid,group.byname";
42 # "mkdb2 hosts hosts.byname,hosts.byaddr 1,0";
45 # "revnetgroup netgroup netgroup,netgroup.byuser,netgroup.byhost";
48 # "mkdb netid netid.byname ";
51 # "mkdb2 networks networks.byname,networks.byaddr 0,1";
54 "pwunconv passwd,shadow passwd.byname,passwd.byuid,shadow.byname";
56 # $rule{"protocols"} =
57 # "mkdb2 protocols protocols.byname,protocols.bynumber";
60 # "mkdb2 rpc rpc.byname,rpc.bynumber 1,0";
63 # "mkdb2 services services.byservicename,services.byservicenumber";
65 # $rule{""} = "mkdb 0";