The Samba-Bugzilla – Bug 1112
access-value is missing in modul printerdata.py
Last modified: 2005-11-14 09:26:25 UTC
The class printerdata get a integer parameter named as access
with the default value 33554432 (MAXIMUM_ALLOWED_ACCESS).
This is the normal value. If you need write data to
a samba server with setprinter() or setprinterdata(), you must
set the value access to 4 (PRINTER_ACCESS_ADMINISTER).
Otherwise you get a error WERR_ACCESS_DENIED.
Created attachment 414 [details]
Patch for printerdata.py
Created attachment 415 [details]
Also fix printerdata_ex object
Hi - that patch looks good. I have also made a similar fix to the
printerdata_ex object but I don't have a win2k (or higher) machine handy to
test it on. Could you give it a quick check to se if it works as well?
Hi Tim, your changes are good.
I tested the read-access with nt4 ans win2k and the write-access to samba
I found no problems. Specially i read the printer device_mode from windows
and write this to samba.
Fix checked in.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.