Dear list,

I've upgraded my server from Etch to Lenny and now the printer (HP LaserJet 6P) does not work any more through Samba.

Printing a testpage via http://server:631 works perfectly so I skip giving details about the CUPS setup.

Also lpstat reports the printer working
# lpstat -a
HP_LaserJet_6P accepting requests


I tried to rerun cupsaddsmb. The driver files are copied to the print$-share (I can see them in /etc/samba/drivers) and also the first RPC call 'adddriver' is reported successful. The second one 'setdriver' ends with 'WERR_INVALID_PARAM', see output:


----------- running cupsaddsmb --------------
# cupsaddsmb -U root -v HP_LaserJet_6P
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print$ -N -A /tmp/4a9044c32f4f2 -c 'mkdir W32X86;put /tmp/4a9044c01fd93 W32X86/HP_LaserJet_6P.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[PRIMEC] OS=[Unix] Server=[Samba 3.2.5]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /tmp/4a9044c01fd93 as \W32X86/HP_LaserJet_6P.ppd (4076.0 kb/s) (average 4076.0 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (7569.1 kb/s) (average 7327.1 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (8174.5 kb/s) (average 7351.5 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (15230.7 kb/s) (average 10466.6 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (15157.1 kb/s) (average 11259.7 kb/s)

Running command: smbclient //localhost/print$ -N -A /tmp/4a9044c32f4f2 -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
Domain=[PRIMEC] OS=[Unix] Server=[Samba 3.2.5]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (17.6 kb/s) (average 17.6 kb/s) putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (6136.4 kb/s) (average 2057.3 kb/s) putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (6675.5 kb/s) (average 3211.9 kb/s)

Running command: rpcclient localhost -N -A /tmp/4a9044c32f4f2 -c 'adddriver "Windows NT x86" "HP_LaserJet_6P:pscript5.dll:HP_LaserJet_6P.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,HP_LaserJet_6P.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Printer Driver HP_LaserJet_6P successfully installed.

Running command: rpcclient localhost -N -A /tmp/4a9044c32f4f2 -c 'setdriver HP_LaserJet_6P HP_LaserJet_6P'
result was WERR_INVALID_PARAM

Unable to set Windows printer driver (1)!
---------------------- end -----------------------

Running the rpcclient command manually with debugging gives:

---------------- rpcclient manually ----------------
# rpcclient localhost -c 'setdriver HP_LaserJet_6P HP_LaserJet_6P; debuglevel 10'
Password:
result was WERR_INVALID_PARAM
debuglevel is 10
write_socket(4,45)
write_socket(4,45) wrote 45
got smb length of 35
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=1
smb_pid=13383
smb_uid=100
smb_mid=14
smt_wct=0
smb_bcc=0
cli_rpc_pipe_close: closed pipe \spoolss to machine localhost
write_socket(4,39)
write_socket(4,39) wrote 39
got smb length of 35
size=35
smb_com=0x71
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=1
smb_pid=13383
smb_uid=100
smb_mid=15
smt_wct=0
smb_bcc=0
-------------------- end ------------------

That does tell me absolutely nothing :)

Any idea?

Thanks,
  Ralph

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to