Handle hostnames with upper-case letters
[webmin.git] / nis / nisupdate.conf
1 #               Sample Rules for the nis_update Script
2
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.
5
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.
10
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:
14 # 0-9: key field
15 # 'n': exclude key field from value string
16 # ':': field separator (group, no shadow). passwd is special anyway.
17 #
18 # default is "0" for single DBs, "0,1" for dual DBs (*.byname,*.bynumber)
19
20 # I assume you want at least passwd and group.
21 # Un-comment the rest or add your own.
22
23 # $rule{"aliases"} =
24 #     "mkdb aliases mail.aliases n0:";
25
26 # $rule{"amd.home"} =
27 #     "mkdb amd.home amd.home n0";
28
29 # $rule{"amd.master"} =
30 #     "mkdb amd.master amd.master n0";
31
32 # $rule{"ethers"} =
33 #     "mkdb2 ethers ethers.byname,ethers.byaddr ";
34
35 $rule{"group"} =
36     "mkdb2 group group.bygid,group.byname 2:,0:";
37
38 # $rule{"group.shadow"} =
39 #    "pwunconv group,gshadow group.bygid,group.byname";
40
41 # $rule{"hosts"} =
42 #     "mkdb2 hosts hosts.byname,hosts.byaddr 1,0";
43
44 # $rule{"netgroup"} =
45 #     "revnetgroup netgroup netgroup,netgroup.byuser,netgroup.byhost";
46
47 # $rule{"netid"} =
48 #     "mkdb netid netid.byname ";
49
50 # $rule{"networks"} =
51 #     "mkdb2 networks networks.byname,networks.byaddr 0,1";
52
53 $rule{"passwd"} =
54     "pwunconv passwd,shadow passwd.byname,passwd.byuid,shadow.byname";
55
56 # $rule{"protocols"} =
57 #     "mkdb2 protocols protocols.byname,protocols.bynumber";
58
59 # $rule{"rpc"} =
60 #     "mkdb2 rpc rpc.byname,rpc.bynumber 1,0";
61
62 # $rule{"services"} =
63 #     "mkdb2 services services.byservicename,services.byservicenumber";
64
65 # $rule{""} = "mkdb  0";
66