[cups.bugs] [HIGH] STR #1270: cupsaddsmb not working in version 1.1.23

Ulrich S q at galgenberg.net
Tue Sep 13 05:24:31 PDT 2005

[STR New]

Well, it took me quite some time to figure this one out. It looks like I'm
not the only one, but I couldn't find anything in the bug database so here
we go.

FreeBSD 6.0, installed cups 1.1.23 from Ports. Followed the steps of
several guide to export my printer via Samba. But the output of cupsaddsmb
was strangely different:

sudo cupsaddsmb -v -U root -a
Password for root required to access localhost via SAMBA: 
Running command: rpcclient localhost -N -U'root%XXXX' -c 'setdriver
ML-4600 ML-4600'
Succesfully set ML-4600 to driver ML-4600.

That is the complete output! When accessing the driver via Windows, it
says no drivers are available and I have to install one locally. I changed
lots of settings in smb.conf to no avail, then I found this Usenet post:

And I downloaded and compiled version 1.1.20 of cups. Then I ran the
1.1.20 version of cupsaddsmb and immediatley got

sudo ./cupsaddsmb -U root -v -a
Password for root required to access coyote via SAMBA:
Running command: smbclient //coyote/print\$ -N -U'root%XXX' -c 'mkdir
W32X86;put /var/spool/cups/tmp/4325e284853af W32X86/ML-4600.ppd;put
/usr/local/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put
/usr/local/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put
/usr/local/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
Domain=[COYOTE] OS=[Unix] Server=[Samba 3.0.14a]
putting file /var/spool/cups/tmp/4325e284853af as \W32X86/ML-4600.ppd
(122.9 kb/s) (average 122.9 kb/s)
putting file /usr/local/share/cups/drivers/cupsdrv5.dll as
\W32X86/cupsdrv5.dll (2881.0 kb/s) (average 1480.5 kb/s)
putting file /usr/local/share/cups/drivers/cupsui5.dll as
\W32X86/cupsui5.dll (2936.9 kb/s) (average 1880.2 kb/s)
putting file /usr/local/share/cups/drivers/cups5.hlp as \W32X86/cups5.hlp
(661.9 kb/s) (average 1791.1 kb/s)

Running command: rpcclient coyote -N -U'root%XXX' -c 'adddriver "Windows
NT x86"
Printer Driver ML-4600 successfully installed.

Running command: rpcclient coyote -N -U'root%XXX' -c 'setdriver ML-4600
Succesfully set ML-4600 to driver ML-4600.

Obviously, Windows is now working like it should. Please investigate this
bug, because there is no sensible error message in 1.1.23, the user might
think that the problem lies somewhere else and will spent endless hours
chasing the problem. Thank you.

Link: http://www.cups.org/str.php?L1270
Version: 1.1.23

More information about the cups mailing list