Will GetPrinterDataEx key DsDriver be implemented?

Gerald Carter jerry at samba.org
Wed Jul 24 09:29:21 GMT 2002

On Wed, 24 Jul 2002, Martin Zielinski wrote:

> Hello, the subject covers my question. Currently there are problems with
> CANON pcl5e PnP drivers. The drivers refuses to print until the "Printer
> Proberties"- or "Advanced / Printing Defaults" dialog has been used
> (call the dialog, hit Ok and it works). Taking a look at the network
> communication shows, that the driver requests several printer properties
> using the mentionend RPC call (e.g.  printMediaReady...). SAMBA 2.2.5
> responses error messages.
> We assume (which might be wrong), that the driver needs these informations OR 
> a stored profile to print. 

This key and the DsSpooler keys are for publishing information
in active directory.  The lack of support for these keys should 
not affect the functionality of the driver itself (at least
i've never encountered a driver that did fail because of it).
I do have plans to look at this in the near future though.

Your problem actually sounds like a NULL devicemode.
Some driver swill not work without one (MSDN says a NULL device
is reason to reinstall the driver).  However to generate the 
device mode for a printer, you have to call an entry point into 
the drive's DLL (which we can't do natively).  That's why things
start working once you play with the printer properties.

Set the log level to 10 and look for messages about a NULL device
mode (`grep -i boing`) :-)

cheers, jerry
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--

More information about the samba-technical mailing list