[Samba] Problems with SPOOLSS WinNT driver uploads

Adam Bottchen bottchen at us.ibm.com
Thu Aug 1 15:58:02 GMT 2002


      I've been experiencing a problem with the automatic printer driver
download function described in printer_driver2.html under Samba 2.2.5 on
Red Hat 7.2.  I believe that I have followed the doc correctly and in fact
the driver uploads/downloads seem to work if I use a small driver set (like
the Apple Laserwriter v23.0) that comes with Windows NT 4.0.
      The problem is that I cannot seem to set up the printer with it's
actual driver set "Lexmark Optra T616".  The steps I take to reproduce are:

      1. Browse to the machine by IP
      2. Go into the Printers folder
      3. Right click on the printer and open Properties
      4. Click the "New Driver" button
      5. Point it to the INI file for the Lexmark Optra T616 driver set

At that point it appears to copy all of the files over to the print$ share.
What is does from there seems to change.  Sometimes it hangs for as much as
30 minutes, slowly adding to the samba debug log only stopping when I kill
smbd.  In other cases it comes back stating that it couldn't switch to the
new driver and it reverts back to the original settings (nothing).  The
print$ share on the Samba server does indeed have all of the driver files.
"enumdrivers" lists the Lexmark Optra T616 driver and "enumprinters" lists
the printer (testlp) with the driver included.  The smb.conf file is:

[global]
        encrypt passwords = Yes
        map to guest = Bad User
        keepalive = 30
        os level = 2
        kernel oplocks = No
        printer admin = @ntadmin

[printers]
        comment = All Printers
        path = /tmp
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        path = /usr/local/samba/printers
        write list = @ntadmin,root

Log level 1 of the problem:

[2002/08/01 14:29:29, 1] smbd/service.c:make_connection(651)
  nt4etr (9.3.131.158) connect to service print$ as user adam (uid=502,
gid=503) (pid 15383)
[2002/08/01 14:29:33, 1] smbd/service.c:make_connection(651)
  nt4etr (9.3.131.158) connect to service print$ as user adam (uid=502,
gid=503) (pid 15383)
[2002/08/01 14:29:33, 1] smbd/service.c:close_cnum(690)
  nt4etr (9.3.131.158) closed connection to service print$
[2002/08/01 14:29:33, 1] smbd/service.c:make_connection(651)
  nt4etr (9.3.131.158) connect to service print$ as user adam (uid=502,
gid=503) (pid 15383)
[2002/08/01 14:29:33, 1] smbd/service.c:close_cnum(690)
  nt4etr (9.3.131.158) closed connection to service print$
[2002/08/01 14:29:38, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(606)
  spoolss_io_devmode: Unknown specversion in devicemode [0x6f]
[2002/08/01 14:29:38, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(608)
  spoolss_io_devmode: please report to samba-technical at samba.org!
[2002/08/01 14:29:38, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(704)
  spoolss_io_devmode: I've parsed all I know and there is still stuff left|
[2002/08/01 14:29:38, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(705)
  spoolss_io_devmode: available_space = [-112], devmode_size = [108]!
[2002/08/01 14:29:38, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(707)
  spoolss_io_devmode: please report to samba-technical at samba.org!
[2002/08/01 14:29:38, 0]
rpc_server/srv_spoolss.c:api_spoolss_open_printer_ex(72)
  spoolss_io_q_open_printer_ex: unable to unmarshall
SPOOL_Q_OPEN_PRINTER_EX.
[2002/08/01 14:29:38, 0] rpc_server/srv_pipe.c:api_rpcTNP(1200)
  api_rpcTNP: api_spoolss_rpc: SPOOLSS_OPENPRINTEREX failed.

I have a log level 6 also available if it would be helpful.  Any help you
could offer would be much appreciated.

Adam Bottchen
bottchen at us.ibm.com








More information about the samba mailing list