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