[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 |
---|
| 29 | # storageadminpw: NOT YET SUPPORTED |
---|
| 30 | # storageuserpw: NOT YET SUPPORTED |
---|
| 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 | # Print Quota administrator |
---|
| 37 | admin: Jerome Alet |
---|
[738] | 38 | adminmail: alet@librelogiciel.com |
---|
[695] | 39 | # |
---|
| 40 | # Mail server to use to warn users |
---|
| 41 | smtpserver: localhost |
---|
| 42 | # |
---|
| 43 | # Accounting method |
---|
| 44 | # Only LAZY is currently supported, see documentation |
---|
| 45 | method: lazy |
---|
| 46 | # |
---|
| 47 | # Grace delay in days |
---|
| 48 | gracedelay: 7 |
---|
| 49 | |
---|
| 50 | # one section per printer |
---|
| 51 | [lp] |
---|
| 52 | # |
---|
| 53 | # How to query the lp printer for its page counter |
---|
[780] | 54 | # Only snmp(community, oid) and external(command) are supported |
---|
| 55 | # e.g. : |
---|
[794] | 56 | # requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") |
---|
[780] | 57 | # and : |
---|
[783] | 58 | # requester: snmp(public, 43.10.2.1.4.1.1) |
---|
[794] | 59 | # are equivalent |
---|
[787] | 60 | requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") |
---|
[695] | 61 | # |
---|
| 62 | # Default policy for inexistant users (e.g. root) |
---|
[713] | 63 | # either allow or deny |
---|
| 64 | policy: allow |
---|