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