[Samba] rpcclient 'adddriver issue HP Deskjet 1220C

Andreas Oster aoster at novanetwork.de
Wed Jul 9 12:40:19 GMT 2008


Hello all,

I am trying to add a printer driver for a HP Deskjet 1220C
with following command to samba:

rpcclient -c 'adddriver "Windows NT x86" \ 
"HPDJ1220C:HPW8KMD.DLL:HPW8KMD.DLL:HPW8KMD.DLL:HPW8DRV.HLP:NULL:RAW: \
HPW8c32.dll,HPW8mon.dll,HPW8r24.dll,HPW8res.dll,HPW8win.dll, \
HPW8ime.dll,HPW8ddi.dll,HPW8img.dll,HPW8sum.dll,HPW8gui.dll, \
HPW8wps.dll,HPW8svb.dll" ' novalx01 -d3


when I do this I get following error message:

lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
Password:
Connecting to host=novalx01
Connecting to 10.2.1.5 at port 445
error connecting to 10.2.1.5:445 (Verbindungsaufbau abgelehnt)
Connecting to 10.2.1.5 at port 139
Doing spnego session setup (blob length=121)
got OID=1 2 840 113554 1 2 2
got OID=1 2 840 48018 1 2 2
got OID=1 3 6 1 4 1 311 2 2 10
got principal=cifs/novalx01.novanetwork.loc at NOVANETWORK.LOC
Got challenge flags:
Got NTLMSSP neg_flags=0x60898215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
rpc_pipe_bind: Remote machine novalx01 pipe \lsarpc fnum 0x72bd bind 
request returned ok.
lsa_io_sec_qos: length c does not match size 8
rpc_pipe_bind: Remote machine novalx01 pipe \spoolss fnum 0x72be bind 
request returned ok.
result was WERR_BADFILE


I have copied the driver files to /var/lib/printers prior to executing 
the adddriver command !


I figured out the needed drivers by doing:

rpcclient -c 'getdriver "HPDJ1220C" 3' novaws100

this gave following result:

[Windows NT x86]
Printer Driver Info 3:
         Version: [3]
         Driver Name: [HP DeskJet 1220C Printer]
         Architecture: [Windows NT x86]
         Driver Path: [\\NOVAWS10\print$\W32X86\3\HPW8KMD.DLL]
         Datafile: [\\NOVAWS10\print$\W32X86\3\HPW8KMD.DLL]
         Configfile: [\\NOVAWS10\print$\W32X86\3\HPW8KMD.DLL]
         Helpfile: [\\NOVAWS10\print$\W32X86\3\HPW8DRV.HLP]

         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8c32.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8mon.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8r24.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8res.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8win.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8ime.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8ddi.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8img.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8sum.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8gui.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8wps.dll]
         Dependentfiles: [\\NOVAWS10\print$\W32X86\3\HPW8svb.dll]

         Monitorname: []
         Defaultdatatype: []


Any ideas ?

Thank you for your help

regards

Andreas



More information about the samba mailing list