r8384: merging clutter fixes from release branch
[kai/samba-autobuild/.git] / examples / logon / mklogon / mklogon.conf
1 # Mapping should be kept in the form 
2 # username(USER) or groupname(WEBUSERS) = driveletter (W:), samba share name (WEB)
3 # ie. user = W:,WEB  or webusers = W:,WEB
4 # Problem found when testing, if there is a duplicate entry only the last one is used,
5 # not the first or both, another problem is that when testing I found a bug in Config::Simple, if you have a tab  
6 # infront of your # on a comment it breaks ...
7 # logging = yes            # Should Logging be enabled (YES,ON,1 or NO,OFF,0)(if not specified defaults to no)
8 # logdir  = "/root/perl"   # What is the base directory the logs should be stored.
9 # logfile = "userlogs.txt" # What should the file be named.
10 # logtype = file (default) # file will log to the file specified, syslog is well... the system logs ;)
11
12 [global]
13 logging = yes
14 logdir  = "/home/samba/netlogon"   
15 logfile = "UserLogs.txt" 
16 logtype = system
17 mkprofile = 1
18 timesync = yes
19 sambaconf = "/etc/samba/smb.conf"
20
21 # Change and uncomment the below value to force the servername, some clients ocassionally 
22 # have trouble picking up the right servername so it may need to be set. It CANNOT be left blank AND uncommented.
23 # servername = staticservername
24
25 [common]
26 public = P:, public
27 home   = H:, /home
28
29 [groupmap]
30 admin   = Y:, UTILS
31 adm     = R:, NETLOGON
32
33 [usermap]
34 user1 = G:, GHOST
35 beanbags = Q:, STAR
36 avinst = P:\\vexira\\vexprof.bat
37
38 # Here is where things get confusing, you can assign a computer, or make a group of computers. 
39 # The same context will go for ip address's as well.
40 # Use the following examples for help.
41 # To define a single computer to do commands
42 # mymachinename = command1, command2
43 # To define a group of computers to do commands 
44 # mymachinegroup = machinename1, machinename2
45 # [preformcommands]
46 # mymachinegroup = command1,command2
47
48 [machines]
49 #emints 1 is jf
50 emints1 = school-w88zfod9, school-o8axvv6t, school-mmtudgbo, school-dpokmajd, school-m84hx4iw, school-74548k1j, school-vou4gdap, school-qfuw5uho
51 #emints 2 is kh
52 emints2 = school-w7loulcx, school-2tbh64eu, school-uunqieuz, school-pow35do4, school-x0v0cbiz, school-zu5qyjhw, school-l4q4j32o
53
54 [ip]
55 ipgroup1 = 10.5.1.1 - 10.5.1.10, 10.1.1.255/24
56 ipgroup2 = 10.1.1.1
57
58 # This is the section where you can specify things according to the operating system of the client.
59 # The clients OS -- Windows 95/98/ME (Win95), Windows NT (WinNT),
60 # Windows 2000 (Win2K), Windows  XP  (WinXP), and Windows 2003
61 # (Win2K3). Anything else will be known as ``UNKNOWN''
62 # That snippet is directly from man smb.conf.
63
64
65 [os]
66 Win95 = REM your computer is windows 9x based
67 WinNT = 
68 Win2K = 
69 WinXP = 
70 Win2K3 = 
71 UNKNOWN = 
72
73 [preformcommands]
74 emints1 = START \\\\JF-TEACHER\\Brother, START \\\\JF-TEACHER\\Canon, REGEDIT /S P:\\SETHOME-JF.REG, your in emints 1
75 emints2 = START \\\\s0034292474\\Brother, START \\\\s0034292474\\Canon, REGEDIT /S P:\\SETHOME-KH.REG
76 ipgroup1 = echo your in the ip group 
77 ipgroup2 = echo your in the ip group 2, start command.com