[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 |
---|
| 25 | storageserver: localhost |
---|
| 26 | storagename: pykota |
---|
| 27 | storageadmin: pykotaadmin |
---|
| 28 | storageuser: pykotauser |
---|
[806] | 29 | # storageadminpw: Comment out if unused, or set to Quota Storage admin password |
---|
| 30 | # storageuserpw: Comment out if unused, or set to Quota Storage user password |
---|
[695] | 31 | |
---|
| 32 | # Where to log ? |
---|
[707] | 33 | # supported values : stderr, system (system means syslog, but don't use 'syslog' here) |
---|
[782] | 34 | logger: system |
---|
[695] | 35 | |
---|
| 36 | # Mail server to use to warn users |
---|
| 37 | smtpserver: localhost |
---|
[806] | 38 | |
---|
[695] | 39 | # Accounting method |
---|
| 40 | # Only LAZY is currently supported, see documentation |
---|
| 41 | method: lazy |
---|
[806] | 42 | |
---|
| 43 | # Print Quota administrator |
---|
| 44 | # These values can be set either globally or per printer or both. |
---|
| 45 | # If both are defined, the printer option has priority. |
---|
| 46 | admin: Jerome Alet |
---|
| 47 | adminmail: alet@librelogiciel.com |
---|
| 48 | |
---|
[695] | 49 | # |
---|
[852] | 50 | # Who should we send an email to in case a quota is reached ? |
---|
| 51 | # possible values are : DevNull, User, Admin, Both |
---|
| 52 | # The Both value means that the User and the Admin will receive |
---|
| 53 | # an email message. |
---|
| 54 | # The DevNull value means no email message will be sent. |
---|
| 55 | # This value can be set either globally or per printer or both. |
---|
| 56 | # If both are defined, the printer option has priority. |
---|
| 57 | mailto: both |
---|
| 58 | |
---|
| 59 | # |
---|
[695] | 60 | # Grace delay in days |
---|
[806] | 61 | # This value can be set either globally or per printer or both. |
---|
| 62 | # If both are defined, the printer option has priority. |
---|
[695] | 63 | gracedelay: 7 |
---|
| 64 | |
---|
[806] | 65 | # one section per printer, or no other section at all if all options are defined globally |
---|
[695] | 66 | [lp] |
---|
[806] | 67 | |
---|
[695] | 68 | # How to query the lp printer for its page counter |
---|
[780] | 69 | # Only snmp(community, oid) and external(command) are supported |
---|
| 70 | # e.g. : |
---|
[794] | 71 | # requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") |
---|
[780] | 72 | # and : |
---|
[783] | 73 | # requester: snmp(public, 43.10.2.1.4.1.1) |
---|
[794] | 74 | # are equivalent |
---|
[806] | 75 | # This value can be set either globally or per printer or both. |
---|
| 76 | # If both are defined, the printer option has priority. |
---|
[830] | 77 | # |
---|
| 78 | # NB : The SNMP oid 43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may |
---|
| 79 | # be different with other brands, refer to your printer's documentation |
---|
| 80 | # for details. |
---|
[787] | 81 | requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") |
---|
[806] | 82 | |
---|
[695] | 83 | # Default policy for inexistant users (e.g. root) |
---|
[713] | 84 | # either allow or deny |
---|
[806] | 85 | # This value can be set either globally or per printer or both. |
---|
| 86 | # If both are defined, the printer option has priority. |
---|
[713] | 87 | policy: allow |
---|