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