summaryrefslogtreecommitdiff
path: root/templates/et/edit-config.tmpl.in
blob: a5af26da3362751596c07da1480df1ef6549d856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<SCRIPT TYPE="text/javascript">
function reset_config()
{
  document.cups.CUPSDCONF.value =
"# Log general information in error_log - change \\"info\\" to \\"debug\\" for\\n" +
"# troubleshooting...\\n" +
"LogLevel info\\n" +
"\\n" +
"\\n" +
"# Administrator user group...\\n" +
"SystemGroup @CUPS_SYSTEM_GROUPS@\\n" +
"@CUPS_SYSTEM_AUTHKEY@\\n" +
"\\n" +
"\\n" +
"# Only listen for connections from the local machine.\\n" +
"Listen 127.0.0.1:@DEFAULT_IPP_PORT@\\n" +
"@CUPS_LISTEN_DOMAINSOCKET@\\n" +
"\\n" +
"\\n" +
"# Show shared printers on the local network.\\n" +
"Browsing On\\n" +
"BrowseOrder allow,deny\\n" +
"BrowseAllow all\\n" +
"\\n" +
"\\n" +
"# Authenticate against system accounts by default...\\n" +
"DefaultAuthType Basic\\n" +
"\\n" +
"# Restrict access to the server...\\n" +
"<Location />\\n" +
"  Order allow,deny\\n" +
"  Allow localhost\\n" +
"</Location>\\n" +
"\\n" +
"# Restrict access to the admin pages...\\n" +
"<Location /admin>\\n" +
"@ENCRYPTION_REQUIRED@\\n" +
"  Order allow,deny\\n" +
"  Allow localhost\\n" +
"</Location>\\n" +
"\\n" +
"# Restrict access to configuration files...\\n" +
"<Location /admin/conf>\\n" +
"  AuthType Default\\n" +
"  Require user @SYSTEM\\n" +
"  Order allow,deny\\n" +
"  Allow localhost\\n" +
"</Location>\\n" +
"\\n" +
"# Set the default printer/job policies...\\n" +
"<Policy default>\\n" +
"  # Job-related operations must be done by the owner or an adminstrator...\\n" +
"  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>\\n" +
"    Require user @OWNER @SYSTEM\\n" +
"    Order deny,allow\\n" +
"  </Limit>\\n" +
"\\n" +
"  # All administration operations require an adminstrator to authenticate...\\n" +
"  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>\\n" +
"    AuthType Default\\n" +
"    Require user @SYSTEM\\n" +
"    Order deny,allow\\n" +
"  </Limit>\\n" +
"\\n" +
"  # Only the owner or an administrator can cancel or authenticate a job...\\n" +
"  <Limit Cancel-Job CUPS-Authenticate-Job>\\n" +
"    Require user @OWNER @SYSTEM\\n" +
"    Order deny,allow\\n" +
"  </Limit>\\n" +
"\\n" +
"  <Limit All>\\n" +
"    Order deny,allow\\n" +
"  </Limit>\\n" +
"</Policy>\\n";
}
</SCRIPT>

<H2 CLASS="title">Serveri seadistustefail</H2>

<FORM NAME="cups" METHOD="POST" ACTION="/admin/">

<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">

<TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25">{CUPSDCONF}</TEXTAREA>

<P><INPUT TYPE="IMAGE" SRC="/images/button-save-changes.gif"
ALT="Salvesta muudatused"> <A
HREF="javascript:reset_config();"><IMG
SRC="/images/button-use-default-config.gif" CLASS="button"
ALT="Kasuta vaikimisi seadistustefaili"></A></P>

</FORM>