[Samba] W9x print driver download problems with Samba 2.2.3a and CUPS

Adam Glasgall teferi at wmute.net
Mon Sep 30 23:44:01 GMT 2002


Curioser and curioser, running the exact same rpcclient command which
cupsaddsmb runs :
rpcclient localhost -N -U'root%<censored>' -c 'adddriver "Windows 4.0"
"<printer-name>:ADOBEPS4.DRV:<printer-name>.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"
results in:
result was NT_STATUS_INVALID_LOCK_SEQUENCE
with debuglevel 2. Going to debuglevel 3 doesn't increase verbosity to
any extent.
I'm thinking this is a serious bug in Samba 2.2.3a, I'm wondering why on
earth Samba 2.2.5 or at least 2.2.4 hasn't made it into Debian testing
(at least!) yet, and I'm trying 2.2.5 tomorrow.

Adam Glasgall (teferi at wmute.net) wrote:
> Kurt Pfeifle (kpfeifle at danka.de) wrote:
> > Glasgall wrote on samba-digest:
> > 
> > >Message: 3
> > >Date: Sun, 29 Sep 2002 14:09:19 -0400
> > >From: Adam Glasgall <teferi at wmute.net>
> > >To: samba at lists.samba.org
> > >Subject: [Samba] W9x print driver download problems with Samba 2.2.3a and 
> > >CUPS
> > >
> > >
> > >--JgQwtEuHJzHdouWu
> > >Content-Type: text/plain; charset=us-ascii
> > >Content-Disposition: inline
> > >Content-Transfer-Encoding: quoted-printable
> > >
> > >I've set up Samba and CUPS on our testing server here, and used
> > >smbcupsadd to upload the Adobe PS drivers to the server as directed in
> > >the HOWTO (The CUPS and Samba HOWTOs differ on this point, by the way -
> > >the latter claims that PSMON.DLL is needed in addition to the eight
> > >other files.
> > 
> > You are right, somehow this got lost in the Samba HOWTO Collection and
> > should be listed.
> > 
> > >I played it safe and had it upload that, too).
> > >With the caveat that I first have to connect to each printer on a w2k
> > >machine and select the driver from the list manually (driver is clearly
> > >installed, just not associated with the printer - rpcclient setdriver
> > >will probably do it, too, I guess), printing from win2k machines works
> > >perfectly - drivers get autodownloaded and everything Just Works.
> > >
> > >Win9x is another story altogether. It's clearly trying to get the
> > >drivers from the server, but at the beginning of the process, it pops up
> > >a box asking for a file whose name is one unprintable character -
> > >Windows prints it as a bold vertical bar in the box. It IS looking in
> > >the right place (\\<servername>\print$\win40\0), but, clearly, the file
> > >isn't there,
> > 
> > Are you saying there is no content in <Unix-path to "[print$]">/WIN40/0/
> > at all?
> WIN40/0 is fully populated with the Adobe PS drivers and the PPDs.
> 
> > >and it's certainly not trying to get the right file.
> > >Watching communications between the two machines with ethereal yielded
> > >no useful information.
> > >What's going on here?
> > 
> > I guess your "cupsaddsmb" command didn't work as intended. Try to run
> > it again. Use the "-v" parameter for verbose output. Are you seeing the
> > line
> > 
> >   "Printer Driver <printername> successfully installed."
> > 
> > *twice* (once for each architecture, W32X86 [=WinNT/2K/XP], and WIN40
> > [=Win9x]) ?
> Yes, the drivers for both NT and 9x get installed right. 
> > Are you seeing a line of
> > 
> >   "Succesfully set <printername> to driver <printername>."
> > 
> > at the end?
> > 
> > If any of the "rpcclient adddriver|setdriver" commands fails (they are
> > printed by the "-v" output of cupsaddsmb), you can try to run them
> > manually from the console, with debuglevel increased ("-d 3" or "-d 5")
> > to troubleshoot this...
> Oddly, rpcclient setdriver doesn't seem to be run at all during the
> process. I suspect this to be a bug in the version of cupsaddsmb.
> I've run it manually, and I'll test when I get into the office today.
> More later.
> > My final advice: Upgrade 2.2.3a to the latest 2.2.5 (with additional
> > print patches applied as to the advices on the website) or to 2.2.6 if
> > it is released....
> Yes, that is my next planned step. It's complicated somewhat by the fact
> that our servers here run Debian stable, and the versions of Samba and
> CUPS in that are both rather elderly...well, I'll try and see if that
> fixes matters.
> > 
> > >Adam Glasgall
> > 
> > Cheers,
> > Kurt
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> 
> -- 
> Adam Glasgall
> Disobedience was Man's Original Virtue



-- 
Adam Glasgall
Disobedience was Man's Original Virtue
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20020930/8fe693d7/attachment.bin


More information about the samba mailing list