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