[841] | 1 | # $Id$ |
---|
| 2 | |
---|
[2478] | 3 | PyKota - Print Quotas for CUPS and LPRng |
---|
[841] | 4 | |
---|
[2622] | 5 | (c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com> |
---|
[873] | 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
[841] | 10 | |
---|
[873] | 11 | This program is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
[841] | 15 | |
---|
[873] | 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with this program; if not, write to the Free Software |
---|
[2303] | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
[873] | 19 | |
---|
[841] | 20 | ==================================================================== |
---|
| 21 | |
---|
| 22 | This directory contains CGI scripts which you may find useful to |
---|
| 23 | put on a web server along with PyKota command line tools. |
---|
| 24 | |
---|
| 25 | Be sure to restrict access to these CGI scripts as necessary. |
---|
[2019] | 26 | |
---|
[2032] | 27 | If you protect access to printquota.cgi or dumpykota.cgi with |
---|
| 28 | username+password authentication, the REMOTE_USER CGI environment variable |
---|
| 29 | is honored, so an user can only see his own datas, but not |
---|
| 30 | other users' datas. However, the special REMOTE_USER value 'root' |
---|
| 31 | is allowed an unrestricted access. |
---|
[841] | 32 | |
---|
[2032] | 33 | If no username+password authentication takes place, then access |
---|
| 34 | is completely unrestricted. |
---|
| 35 | |
---|
[2232] | 36 | If you don't protect access to pykotme.cgi with username+password |
---|
| 37 | authentication, then only the job's size will be displayed |
---|
| 38 | to you. This is due to the cost of a print job on a particular printer |
---|
| 39 | depending on the user because of the overcharging factor's value. |
---|
| 40 | So if you want pykotme.cgi to produce complete web quotes, you must |
---|
| 41 | ensure that the user logs in from his web browser whenever he uses |
---|
| 42 | this CGI script. |
---|
| 43 | |
---|
[2032] | 44 | You must ensure that the user your web server runs as can read |
---|
| 45 | PyKota's pykota.conf configuration file. No read access to |
---|
| 46 | PyKota's pykotadmin.conf configuration file is necessary though. |
---|
| 47 | |
---|
[841] | 48 | The web server doesn't need to be a print server nor a PyKota |
---|
| 49 | Storage Backend server, but it must contain a correctly configured |
---|
| 50 | PyKota installation. |
---|
| 51 | |
---|
| 52 | ==================================================================== |
---|