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