samba 3.2.4 rpcclient setprinterdata fails

Martin Zielinski mz at seh.de
Mon Nov 10 10:14:31 GMT 2008


Hello!

When I call setprinterdata with rpcclient, the printer handle is opened 
with MAXIMUM_ALLOWED_ACCESS.

As far as I can see, this will ALLWAYS result in PRINTER_ACCESS_USE (see 
: srv_sppolss_nt.c - _spoolss_open_printer_ex())

This is not sufficient for setting the printer data (see: 
srv_spoolss_nt.c - _spoolss_setprinterdata())

Am I missing something, or is it simply not possible to use the 
setprinterdata call via rpcclient?

Thanks,

Martin

-- 
Martin Zielinski 			mz at seh.de		
Softwareentwicklung			T +49 (0)521 94226 76	

SEH Computertechnik GmbH 		www.seh.de



More information about the samba-technical mailing list