[695] | 1 | # PyKota sample configuration file |
---|
| 2 | # |
---|
| 3 | # Copy this file in cups' configuration directory |
---|
| 4 | # usually /etc/cups under the name pykota.conf |
---|
| 5 | # |
---|
| 6 | # PyKota - Print Quotas for CUPS |
---|
| 7 | # |
---|
| 8 | # (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
| 9 | # You're welcome to redistribute this software under the |
---|
| 10 | # terms of the GNU General Public Licence version 2.0 |
---|
| 11 | # or, at your option, any higher version. |
---|
| 12 | # |
---|
| 13 | # You can read the complete GNU GPL in the file COPYING |
---|
| 14 | # which should come along with this software, or visit |
---|
| 15 | # the Free Software Foundation's WEB site http://www.fsf.org |
---|
| 16 | # |
---|
| 17 | # $Id$ |
---|
| 18 | # |
---|
| 19 | |
---|
| 20 | [global] |
---|
| 21 | # Storage backend for quotas |
---|
| 22 | # only PostgreSQL is supported |
---|
| 23 | # Ldap, MySQL, Berkeley are planned |
---|
| 24 | storagebackend: postgresql |
---|
[859] | 25 | |
---|
| 26 | # Quota Storage Server hostname (and port) |
---|
| 27 | # e.g. db.mydomain.com:5432 |
---|
[695] | 28 | storageserver: localhost |
---|
[859] | 29 | |
---|
| 30 | # |
---|
| 31 | # name of the Quota Storage Database |
---|
[695] | 32 | storagename: pykota |
---|
[859] | 33 | |
---|
| 34 | # Quota Storage administrator's and normal user's names and passwords |
---|
[695] | 35 | storageadmin: pykotaadmin |
---|
| 36 | storageuser: pykotauser |
---|
[806] | 37 | # storageadminpw: Comment out if unused, or set to Quota Storage admin password |
---|
| 38 | # storageuserpw: Comment out if unused, or set to Quota Storage user password |
---|
[695] | 39 | |
---|
| 40 | # Where to log ? |
---|
[707] | 41 | # supported values : stderr, system (system means syslog, but don't use 'syslog' here) |
---|
[853] | 42 | # if the value is not set then the default SYSTEM applies. |
---|
[782] | 43 | logger: system |
---|
[695] | 44 | |
---|
| 45 | # Mail server to use to warn users |
---|
[853] | 46 | # If the value is not set then localhost is used. |
---|
[695] | 47 | smtpserver: localhost |
---|
[806] | 48 | |
---|
[695] | 49 | # Accounting method |
---|
| 50 | # Only LAZY is currently supported, see documentation |
---|
| 51 | method: lazy |
---|
[806] | 52 | |
---|
| 53 | # Print Quota administrator |
---|
| 54 | # These values can be set either globally or per printer or both. |
---|
| 55 | # If both are defined, the printer option has priority. |
---|
[853] | 56 | # If these values are not set, the default admin root |
---|
| 57 | # and the default adminmail root@localhost are used. |
---|
[806] | 58 | admin: Jerome Alet |
---|
| 59 | adminmail: alet@librelogiciel.com |
---|
| 60 | |
---|
[695] | 61 | # |
---|
[852] | 62 | # Who should we send an email to in case a quota is reached ? |
---|
| 63 | # possible values are : DevNull, User, Admin, Both |
---|
| 64 | # The Both value means that the User and the Admin will receive |
---|
| 65 | # an email message. |
---|
| 66 | # The DevNull value means no email message will be sent. |
---|
| 67 | # This value can be set either globally or per printer or both. |
---|
| 68 | # If both are defined, the printer option has priority. |
---|
[853] | 69 | # If the value is not set, then the default BOTH applies. |
---|
[852] | 70 | mailto: both |
---|
| 71 | |
---|
| 72 | # |
---|
[695] | 73 | # Grace delay in days |
---|
[806] | 74 | # This value can be set either globally or per printer or both. |
---|
| 75 | # If both are defined, the printer option has priority. |
---|
[853] | 76 | # If the value is not set then the default seven (7) days applies. |
---|
[695] | 77 | gracedelay: 7 |
---|
| 78 | |
---|
[853] | 79 | # one section per printer, or no other section at all if all options |
---|
| 80 | # are defined globally |
---|
[695] | 81 | [lp] |
---|
[806] | 82 | |
---|
[695] | 83 | # How to query the lp printer for its page counter |
---|
[780] | 84 | # Only snmp(community, oid) and external(command) are supported |
---|
| 85 | # e.g. : |
---|
[794] | 86 | # requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") |
---|
[780] | 87 | # and : |
---|
[783] | 88 | # requester: snmp(public, 43.10.2.1.4.1.1) |
---|
[794] | 89 | # are equivalent |
---|
[806] | 90 | # This value can be set either globally or per printer or both. |
---|
| 91 | # If both are defined, the printer option has priority. |
---|
[830] | 92 | # |
---|
| 93 | # NB : The SNMP oid 43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may |
---|
| 94 | # be different with other brands, refer to your printer's documentation |
---|
| 95 | # for details. |
---|
[787] | 96 | requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") |
---|
[806] | 97 | |
---|
[695] | 98 | # Default policy for inexistant users (e.g. root) |
---|
[713] | 99 | # either allow or deny |
---|
[806] | 100 | # This value can be set either globally or per printer or both. |
---|
| 101 | # If both are defined, the printer option has priority. |
---|
[853] | 102 | # If the value is not set then the default policy ALLOW applies. |
---|
[713] | 103 | policy: allow |
---|