1 | # $Id$ |
---|
2 | |
---|
3 | PyKota - Print Quota for CUPS |
---|
4 | |
---|
5 | (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
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. |
---|
10 | |
---|
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. |
---|
15 | |
---|
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 |
---|
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
19 | |
---|
20 | ============================================================ |
---|
21 | |
---|
22 | PyKota NEWS : |
---|
23 | |
---|
24 | - 1.15alpha7 : |
---|
25 | |
---|
26 | - More work done on caching wrt groups. |
---|
27 | |
---|
28 | - 1.15alpha6 : |
---|
29 | |
---|
30 | - Performance bottleneck with LDAP solved. |
---|
31 | |
---|
32 | - 1.15alpha5 : |
---|
33 | |
---|
34 | - Caching mechanism for all database queries. |
---|
35 | |
---|
36 | - 1.15alpha4 : |
---|
37 | |
---|
38 | - Problem with Python 2.3 fixed. Needs some definitive |
---|
39 | modification. |
---|
40 | |
---|
41 | - 1.15alpha3 : |
---|
42 | |
---|
43 | - CGI script now tries to restrict view when the |
---|
44 | REMOTE_USER environment variable is set. This allows |
---|
45 | people to protect its use with .htaccess files. |
---|
46 | When unprotected, or if REMOTE_USER is 'root', then |
---|
47 | unrestricted access is granted. |
---|
48 | NB : REMOTE_USER is automatically set by the web server |
---|
49 | (e.g. Apache) when a page with restricted access is viewed. |
---|
50 | |
---|
51 | - 1.15alpha2 : |
---|
52 | |
---|
53 | - Better detection of LPRng. |
---|
54 | |
---|
55 | - Outputs a warning if printing system is unknown. |
---|
56 | |
---|
57 | - 1.15alpha1 : |
---|
58 | |
---|
59 | - Bug fix in SQL code. |
---|
60 | |
---|
61 | - 1.14 : |
---|
62 | |
---|
63 | - The PostgreSQL database connection is now always closed before |
---|
64 | exit. The LDAP database connection too, but it didn't suffer |
---|
65 | from the problem anyway, AFAICT. |
---|
66 | |
---|
67 | - 1.14beta2 : |
---|
68 | |
---|
69 | - An LDAP-specific configuration field was introduced, usermail. |
---|
70 | Use it to specify which LDAP attribute contains a valid email |
---|
71 | address for the user. See sample configuration file for |
---|
72 | details. |
---|
73 | |
---|
74 | - 1.14beta : |
---|
75 | |
---|
76 | - Two new LDAP-specific configuration fields were introduced, |
---|
77 | newuser and newgroup. Use them to specify if you want to add |
---|
78 | quota information to existing entries or elsewhere. |
---|
79 | See sample configuration file for details. |
---|
80 | |
---|
81 | - 1.14alpha9 : |
---|
82 | |
---|
83 | - Documentation improved. |
---|
84 | |
---|
85 | - pykotme now also prints the user's account balance value |
---|
86 | if the user is registered in the Quota Storage and his |
---|
87 | limiting factor is "balance". |
---|
88 | |
---|
89 | - 1.14alpha8 : |
---|
90 | |
---|
91 | - bin/waitprinter.sh is now included to wait for |
---|
92 | SNMP enabled printers to be idle again before |
---|
93 | asking for their internal page counter. |
---|
94 | See sample configuration file for details. |
---|
95 | |
---|
96 | - 1.14alpha7 : |
---|
97 | |
---|
98 | - edpykota now doesn't check if the user/group is above |
---|
99 | quota. The check is only done at print time. This |
---|
100 | prevents the sending of email messages when creating |
---|
101 | user quotas if quota is already reached at creation |
---|
102 | time. |
---|
103 | |
---|
104 | - 1.14alpha6 : |
---|
105 | |
---|
106 | - Configuration file split and moved to /etc/pykota/pykota.conf |
---|
107 | and /etc/pykota/pykotadmin.conf to prevent simple users to |
---|
108 | have Read/Write access to the Quota Database. |
---|
109 | Don't forget to : |
---|
110 | |
---|
111 | $ chmod 640 /etc/pykota/pykotadmin.conf |
---|
112 | |
---|
113 | - storageuser and storageuserpw configuration fields reintroduced |
---|
114 | for the same reason. |
---|
115 | |
---|
116 | - Code cleaning for future implementation of email addresses |
---|
117 | support in the PostgreSQL and LDAP backends. |
---|
118 | |
---|
119 | - 1.14alpha5 : |
---|
120 | |
---|
121 | - Big bug fixed when changing the prices for a printer |
---|
122 | |
---|
123 | - 1.14alpha4 : |
---|
124 | |
---|
125 | - When adding an user, the user itself and its account balance |
---|
126 | are now added in the same LDAP entry. Before they were added |
---|
127 | as two different LDAP entries. |
---|
128 | |
---|
129 | - 1.14alpha3 : |
---|
130 | |
---|
131 | - Email field added to PostgreSQL database. An upgrade script |
---|
132 | is included in initscripts/postgresql. |
---|
133 | |
---|
134 | - 1.14alpha2 : |
---|
135 | |
---|
136 | - Typo fixed when using the --prototype option to edpykota |
---|
137 | |
---|
138 | - 1.14alpha1 : |
---|
139 | |
---|
140 | - Poor man's treshold included : users with a low account |
---|
141 | balance (below 1.0 by default, configurable) are sent |
---|
142 | a warning message. |
---|
143 | |
---|
144 | - All warning messages to users are now configurable. |
---|
145 | NB : Warning messages to the administrator are not. |
---|
146 | |
---|
147 | - 1.13 : |
---|
148 | |
---|
149 | - Some small fixes wrt group handling. |
---|
150 | |
---|
151 | - The whole module code was passed through PyChecker and |
---|
152 | several small code inconsistencies were fixed, |
---|
153 | as well as a bug in the groups code. |
---|
154 | |
---|
155 | - 1.13alpha1 : |
---|
156 | |
---|
157 | - Bug fix wrt LDAP. |
---|
158 | |
---|
159 | - 1.12 : |
---|
160 | |
---|
161 | - More complete test added in edpykota. |
---|
162 | |
---|
163 | - 1.12alpha2 : |
---|
164 | |
---|
165 | - The previous bug fix was incomplete. This is corrected. |
---|
166 | |
---|
167 | - 1.12alpha1 : |
---|
168 | |
---|
169 | - Small bug fix. |
---|
170 | |
---|
171 | - 1.11 : |
---|
172 | |
---|
173 | - Now includes the pykotme command line tool, to produce |
---|
174 | printing quotes for users. |
---|
175 | |
---|
176 | - 1.10 : |
---|
177 | |
---|
178 | - Bug fixed wrt quota reports when print limiting is by |
---|
179 | account balance. |
---|
180 | |
---|
181 | - 1.09 : |
---|
182 | |
---|
183 | - Translations finalized. |
---|
184 | |
---|
185 | - Manpages updated. |
---|
186 | |
---|
187 | - Installation documentation improved wrt LDAP support. |
---|
188 | |
---|
189 | - 1.09beta2 : |
---|
190 | |
---|
191 | - The CGI script for quota reports works again, and |
---|
192 | is much more powerful. |
---|
193 | |
---|
194 | - 1.09beta : |
---|
195 | |
---|
196 | - edpykota finalized |
---|
197 | |
---|
198 | - 1.09alpha2 : |
---|
199 | |
---|
200 | - LDAP schema modified a bit. Please upgrade. |
---|
201 | |
---|
202 | - LDAP backend works ! |
---|
203 | |
---|
204 | - repykota and warnpykota allow the root user to pass |
---|
205 | users or groups names on the command line. Users |
---|
206 | and groups names may contain wildcards. |
---|
207 | |
---|
208 | - repykota and warnpykota only reports or warns the |
---|
209 | current user when launched by non-root users. |
---|
210 | |
---|
211 | - Minor bug fixes. |
---|
212 | |
---|
213 | - 1.09alpha1 : |
---|
214 | |
---|
215 | - More work on LDAP storage backend. Many options |
---|
216 | were added to /etc/pykota.conf to give some |
---|
217 | hints to the LDAP storage backend. |
---|
218 | |
---|
219 | - Severe database access optimizations were done by |
---|
220 | rewriting most of the Quota Storage backends drivers. |
---|
221 | |
---|
222 | - 1.08 : |
---|
223 | |
---|
224 | - Major bug fix wrt LPRng support for remote jobs. |
---|
225 | |
---|
226 | - Major bug fix wrt increase/decrease account balances. |
---|
227 | |
---|
228 | - 1.08alpha8 : |
---|
229 | |
---|
230 | - Code refactoring. |
---|
231 | |
---|
232 | - A single user/password pair is used to connect |
---|
233 | to the database backend. The storageuser configuration |
---|
234 | field, and its associated passwords storageuserpw, are |
---|
235 | not used anymore. |
---|
236 | |
---|
237 | - You can now set PyKota in debug mode, see sample configuration |
---|
238 | file for details. |
---|
239 | WARNING : only Quota Storage backend queries are logged in |
---|
240 | debug mode, for now. |
---|
241 | |
---|
242 | - 1.08alpha7 : |
---|
243 | |
---|
244 | - Very latest LDAP schema. |
---|
245 | |
---|
246 | - Code enhancement wrt easy pluggability of PyKota attributes |
---|
247 | and object classes into an existing LDAP directory. |
---|
248 | |
---|
249 | - 1.08alpha6 : |
---|
250 | |
---|
251 | - Minor bug corrections |
---|
252 | |
---|
253 | - More work on LDAP : new schema |
---|
254 | |
---|
255 | - 1.08alpha5 : |
---|
256 | |
---|
257 | - More good work on LDAP storage. |
---|
258 | repykota now works reasonably well with the sample LDAP directory. |
---|
259 | |
---|
260 | - 1.08alpha4 : |
---|
261 | |
---|
262 | - LDAP schema included. |
---|
263 | THIS IS JUST FOR PEOPLE TO DISCUSS ABOUT THIS. |
---|
264 | LDAP SUPPORT DOESN'T WORK YET, AND THE SCHEMA |
---|
265 | MAY CHANGE IN THE FUTURE. PLEASE TELL US |
---|
266 | WHAT YOU THINK ABOUT THIS SCHEMA ON THE |
---|
267 | MAILING LIST. |
---|
268 | |
---|
269 | - 1.08alpha3 : |
---|
270 | |
---|
271 | - External accounting methods were partly rewritten : |
---|
272 | |
---|
273 | - No more "broken pipe" should happen. |
---|
274 | |
---|
275 | - They now take care of the number of copies |
---|
276 | This may be unneeded though, if the postscript |
---|
277 | file already does this, because this would |
---|
278 | overcharge users (number of copies counted |
---|
279 | two times). NEEDS MORE TESTING. |
---|
280 | |
---|
281 | - The sample configuration file now contains |
---|
282 | an external accounting method example which should |
---|
283 | work with all DSC compliant Postscript files. |
---|
284 | |
---|
285 | - Some small bugs were fixed. |
---|
286 | |
---|
287 | - 1.08alpha2 : |
---|
288 | |
---|
289 | - Now works with net-snmp v5.0 and above. |
---|
290 | It already worked, but the sample configuration |
---|
291 | file didn't contain appropriate values... |
---|
292 | |
---|
293 | - 1.07 : Release of the Shame ! |
---|
294 | |
---|
295 | - The external accounting methods driver was left out of |
---|
296 | the CVS tree. Nobody could use it since it wasn't included ! |
---|
297 | |
---|
298 | - 1.06 : |
---|
299 | |
---|
300 | - Severe bug fixed : if you had a printer in |
---|
301 | power saving state which couldn't answer immediately, |
---|
302 | a bug was triggered. |
---|
303 | It was caused by a bad copy/paste which |
---|
304 | forgot to import a Python module at run time. |
---|
305 | |
---|
306 | - 1.05 : |
---|
307 | |
---|
308 | - External accounters are finally available ! |
---|
309 | This means that you can plug any page accounting |
---|
310 | method you like by setting the appropriate |
---|
311 | 'accounter' field in /etc/pykota.conf |
---|
312 | See the sample conf/pykota.conf.sample to |
---|
313 | learn how to do. |
---|
314 | |
---|
315 | NB : Both 'external' and 'stupid' accounting methods |
---|
316 | account a job size just before *this* job is |
---|
317 | sent to the printer. |
---|
318 | The original 'querying' method accounts a job |
---|
319 | size just before *the next* job is sent to |
---|
320 | the printer. |
---|
321 | |
---|
322 | - 1.05alpha3 : |
---|
323 | |
---|
324 | - A 'stupid' and unreliable accounting method was |
---|
325 | implemented to serve as an example on how to |
---|
326 | do this sort of things. This method only counts |
---|
327 | the 'showpage' statements in the input data. |
---|
328 | See sample configuration file for details. |
---|
329 | Pluggable accounting methods work, but I advise |
---|
330 | you TO NOT USE THIS ONE WHICH IS JUST AN EXAMPLE. |
---|
331 | It is not reliable enough to be used. |
---|
332 | Use the 'querying' accounting method instead. |
---|
333 | |
---|
334 | - 1.05alpha2 : |
---|
335 | |
---|
336 | - Pluggable accounting methods. |
---|
337 | |
---|
338 | - Better error handling. |
---|
339 | |
---|
340 | - 1.05alpha1 : |
---|
341 | |
---|
342 | - SECURITY file added to help improve PyKota's security. |
---|
343 | |
---|
344 | - Extracting the printer's internal page counter is now |
---|
345 | tried several times, waiting several seconds between |
---|
346 | two tries. This lets the time to warm up for some printers |
---|
347 | which don't answer when they are sleeping (my Apple |
---|
348 | LaserWriter 16/600 PS is in this case, maybe others too) |
---|
349 | |
---|
350 | - Small display bug fixed in repykota |
---|
351 | |
---|
352 | - 1.04 : |
---|
353 | |
---|
354 | - Default print policy for users/groups unknown from |
---|
355 | the print quota system is now DENY instead of ALLOW, |
---|
356 | since ALLOW can generate inaccurate results |
---|
357 | (incorrect job sizes charged to the wrong persons) |
---|
358 | |
---|
359 | - LPRng support works ! |
---|
360 | |
---|
361 | - A bug was introduced some time ago wrt printers' default |
---|
362 | policy for unknown users. It is now corrected. |
---|
363 | |
---|
364 | - repykota now displays prices per job and per page for each |
---|
365 | printer, if they are defined. |
---|
366 | |
---|
367 | - Minor display bug fixed in repykota. |
---|
368 | |
---|
369 | - Problem when running repykota with an empty database was fixed. |
---|
370 | |
---|
371 | - 1.03 : |
---|
372 | |
---|
373 | - Upgrade script included for earlier versions. |
---|
374 | Please look inside the initscripts subdirectory. |
---|
375 | THE DATABASE SCHEMA HAS CHANGED, PLEASE UPGRADE. |
---|
376 | |
---|
377 | - repykota now reports account balances too. |
---|
378 | |
---|
379 | - PyKota now has a nice logo, see the logos |
---|
380 | subdirectory. |
---|
381 | |
---|
382 | - Manual pages were finally updated. |
---|
383 | |
---|
384 | - Group quotas seem to work now ! |
---|
385 | |
---|
386 | - The new database schema allows to keep an history of all |
---|
387 | jobs as well as charge users per page and/or per job, |
---|
388 | and track users' account balance. |
---|
389 | |
---|
390 | - edpykota now accepts much more command line options to |
---|
391 | use the new functionnalities. See edpykota --help for |
---|
392 | details. |
---|
393 | |
---|
394 | - The installation script now allows to install the sample |
---|
395 | configuration file during first installation. |
---|
396 | |
---|
397 | - More group quota code works, but still not finished. |
---|
398 | |
---|
399 | - The CGI script displays a link to PyKota's website. |
---|
400 | |
---|
401 | - The job history is now kept, this will allow per-period |
---|
402 | reports in the future. |
---|
403 | |
---|
404 | - After having modified the quota for an user with edpykota, |
---|
405 | a quota check is done to eventually warn the user/admin about |
---|
406 | a quota which is too low to print. |
---|
407 | |
---|
408 | - A workaround is provided for HP Printers : their internal |
---|
409 | page counter is only saved to NVRAM in a 10 increment, so |
---|
410 | if you switch them off and then on, the reported page counter |
---|
411 | may be lower than the real number of pages printed. |
---|
412 | See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html |
---|
413 | We unconditionnally set the last job's page count to |
---|
414 | abs(int((10 - abs(lastcounter(snmp) - lastcounter(storage)) / 2)) |
---|
415 | in this case. |
---|
416 | For a more accurate accounting, never switch your HP printers |
---|
417 | off. |
---|
418 | |
---|
419 | - A fix is provided for printers which only have a volatile |
---|
420 | page counter (reset to 0 every time you switch the printer on) |
---|
421 | This should allow PyKota to work reasonably fine with HP Laserjet |
---|
422 | 4L/5L/6L, not perfect, but better than nothing. |
---|
423 | See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html |
---|
424 | For a more accurate accounting, never switch your HP printers |
---|
425 | off. This is untested, please report any problem. |
---|
426 | |
---|
427 | - A bug was fixed when edpykota --add was used with users who already |
---|
428 | had a quota on the specified printer. |
---|
429 | |
---|
430 | - A small display bug in repykota was introduced in preliminary |
---|
431 | 1.03 versions, and fixed later on. |
---|
432 | |
---|
433 | - Some minor bugs which happened in rare situations were fixed. |
---|
434 | |
---|
435 | - Support for AppleTalk printers was added, see sample configuration |
---|
436 | file for details. |
---|
437 | |
---|
438 | - Users and group printing can now be controlled (limited) either by |
---|
439 | print quota or by account balance. |
---|
440 | |
---|
441 | - 1.02 : |
---|
442 | |
---|
443 | - The installation script now checks for software availability |
---|
444 | and in case a software is missing asks the user if he |
---|
445 | wants to continue with the installation or abort it. |
---|
446 | |
---|
447 | - The configuration file pykota.conf is now expected to be |
---|
448 | found in /etc instead of in /etc/cups |
---|
449 | The installation script prompts the user to see if he |
---|
450 | wants to move an old configuration file to the new location |
---|
451 | if needed. |
---|
452 | |
---|
453 | - Improved documentation. |
---|
454 | |
---|
455 | - You can now set the tcp/ip port on which the Quota Storage |
---|
456 | Server is listening, see sample configuration file for details. |
---|
457 | |
---|
458 | - Better general error handling. |
---|
459 | |
---|
460 | - Upgrade script for pre 1.01 PostgreSQL database schema is now |
---|
461 | included as well. |
---|
462 | |
---|
463 | - 1.01 : |
---|
464 | |
---|
465 | - The configuration file now accepts an option |
---|
466 | to choose the recipient(s) of the email messages : |
---|
467 | |
---|
468 | - DevNull means no one will receive them. |
---|
469 | - User means only the user will receive them. |
---|
470 | - Admin means only the admin will receive them. |
---|
471 | - Both means the User and the Admin will receive them. |
---|
472 | |
---|
473 | - The configuration file now uses hard-coded default values |
---|
474 | when an option is not set. See sample configuration file |
---|
475 | for details. |
---|
476 | |
---|
477 | - Manual pages are included since 1.00, but I forgot to |
---|
478 | add this information to this file. |
---|
479 | |
---|
480 | - Redistribution terms for the official package have |
---|
481 | softened and are now fully GPL compatible : |
---|
482 | unrestricted modification is now allowed even for |
---|
483 | the version number. |
---|
484 | |
---|
485 | - 1.00 : |
---|
486 | |
---|
487 | - edpykota now accepts a --noquota option. This |
---|
488 | disable quota checking while still doing page |
---|
489 | accounting. This is really useful for people |
---|
490 | who don't want to limit their users but want |
---|
491 | to know how much pages they print. |
---|
492 | |
---|
493 | - Some untested scripts were added to retrieve |
---|
494 | the life time page counter of non-SNMP printers. |
---|
495 | |
---|
496 | - Every directory now has a specific README file. |
---|
497 | |
---|
498 | - 0.99 : |
---|
499 | |
---|
500 | - Under some circumstances while the user wasn't allowed |
---|
501 | to print, he didn't receive any email message. It is |
---|
502 | now fixed. |
---|
503 | |
---|
504 | - When an user wasn't allowed to print, the quota for |
---|
505 | the previous user wasn't updated. This is now fixed. |
---|
506 | |
---|
507 | - 0.98 : |
---|
508 | |
---|
509 | - Correctly handle the case where the printer is switched off. |
---|
510 | |
---|
511 | - Small bug wrt syslog fixed. |
---|
512 | |
---|
513 | - 0.97 : |
---|
514 | |
---|
515 | - edpykota accepts wildcards on its command line for users/groups too |
---|
516 | if the --add option is not set, e.g. : |
---|
517 | |
---|
518 | $ edpykota --printer lp --softlimit 50 --hardlimit 100 "jer*" |
---|
519 | |
---|
520 | - If no user name is passed at all, then a default wildcard of "*" |
---|
521 | which means apply the command on ALL users for this printer is used. |
---|
522 | |
---|
523 | - Small bug fixes. |
---|
524 | |
---|
525 | - 0.96 : |
---|
526 | |
---|
527 | - Options requester, policy, admin, adminmail and gracedelay can now |
---|
528 | be set either globally or per printer. The printer option has |
---|
529 | priority if both are defined. |
---|
530 | |
---|
531 | - More powerful configuration parser. |
---|
532 | |
---|
533 | - If all options are defined globally, there's no need to |
---|
534 | define a section for each printer in the configuration |
---|
535 | file anymore. Just define a [global] section and it's ok. |
---|
536 | |
---|
537 | - 0.95 : |
---|
538 | |
---|
539 | - External requesters for printers finally added. |
---|
540 | |
---|
541 | - Full internationalization (english and french are supported) |
---|
542 | |
---|
543 | - More complete quota usage report |
---|
544 | |
---|
545 | - CGI script to access to the quota usage report |
---|
546 | |
---|
547 | - Several bugs fixed. |
---|
548 | |
---|
549 | |
---|
550 | - 0.9 : |
---|
551 | |
---|
552 | - First public version |
---|