[841] | 1 | # $Id$ |
---|
| 2 | |
---|
[3259] | 3 | PyKota - Print Quotas for CUPS |
---|
[841] | 4 | |
---|
[3275] | 5 | (c) 2003, 2004, 2005, 2006, 2007, 2008 Jerome Alet <alet@librelogiciel.com> |
---|
[3259] | 6 | This program is free software: you can redistribute it and/or modify |
---|
[873] | 7 | it under the terms of the GNU General Public License as published by |
---|
[3259] | 8 | the Free Software Foundation, either version 3 of the License, or |
---|
[873] | 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 |
---|
[3259] | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
[873] | 18 | |
---|
[841] | 19 | ==================================================================== |
---|
| 20 | |
---|
| 21 | This directory contains CGI scripts which you may find useful to |
---|
| 22 | put on a web server along with PyKota command line tools. |
---|
| 23 | |
---|
| 24 | Be sure to restrict access to these CGI scripts as necessary. |
---|
[2019] | 25 | |
---|
[3413] | 26 | If you protect access to printquota.cgi or dumpykota.cgi with |
---|
[2032] | 27 | username+password authentication, the REMOTE_USER CGI environment variable |
---|
| 28 | is honored, so an user can only see his own datas, but not |
---|
| 29 | other users' datas. However, the special REMOTE_USER value 'root' |
---|
| 30 | is allowed an unrestricted access. |
---|
[841] | 31 | |
---|
[2032] | 32 | If no username+password authentication takes place, then access |
---|
| 33 | is completely unrestricted. |
---|
| 34 | |
---|
[2232] | 35 | If you don't protect access to pykotme.cgi with username+password |
---|
| 36 | authentication, then only the job's size will be displayed |
---|
| 37 | to you. This is due to the cost of a print job on a particular printer |
---|
[3413] | 38 | depending on the user because of the overcharging factor's value. |
---|
| 39 | So if you want pykotme.cgi to produce complete web quotes, you must |
---|
| 40 | ensure that the user logs in from his web browser whenever he uses |
---|
[2232] | 41 | this CGI script. |
---|
| 42 | |
---|
[2032] | 43 | You must ensure that the user your web server runs as can read |
---|
| 44 | PyKota's pykota.conf configuration file. No read access to |
---|
| 45 | PyKota's pykotadmin.conf configuration file is necessary though. |
---|
| 46 | |
---|
[3413] | 47 | The web server doesn't need to be a print server nor a PyKota |
---|
| 48 | Storage Backend server, but it must contain a correctly configured |
---|
| 49 | PyKota installation. |
---|
[841] | 50 | |
---|
| 51 | ==================================================================== |
---|