Rob Tanner
2003-Aug-06 15:51 UTC
[Samba] adddriver rpc command generates segmentation fault
Hi,
I'm trying to add a printer driver to samba 2.2.7, part of the RedHat 9
distro. I have all the associated files under print$/W32X86 (I verified
that they were where I thought they were from samba's POV by looking via
smbclient). Below is the output from a getdriver command issued to a W2K
PDC to get the names of all the required files for the particular printer:
[Windows NT x86]
Printer Driver Info 3:
Version: [3]
Driver Name: [HP LaserJet 8000 Series PS]
Architecture: [Windows NT x86]
Driver Path:
[C:\WINNT\system32\spool\DRIVERS\W32X86\3\PSCRIPT5.DLL]
Datafile: [C:\WINNT\system32\spool\DRIVERS\W32X86\3\HP8000_7.PPD]
Configfile: [C:\WINNT\system32\spool\DRIVERS\W32X86\3\PS5UI.DLL]
Helpfile: [C:\WINNT\system32\spool\DRIVERS\W32X86\3\PSCRIPT.HLP]
Dependentfiles:
[C:\WINNT\system32\spool\DRIVERS\W32X86\3\PSCRIPT.NTF]
Monitorname: [b]
Defaultdatatype: [b]
This is the adddriver command and its output:
rpcclient -Uroot%wDs1Tl0c -d3 -c 'adddriver "Windows NT x86" \
"mhx lab hp ps:PSCRIPT5.DLL: \
HP8000_7.PPD:ps5ui.dll,pscript.hlp: \
NULL:RAW:pscript.ntf"' socrates
Initialising global parameters
params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=10.219.255.249 bcast=10.219.255.255 nmask=255.255.0.0
resolve_lmhosts: Attempting lmhosts lookup for name socrates<0x20>
resolve_hosts: Attempting host lookup for name socrates<0x20>
Connecting to host=socrates share=IPC$
Connecting to 10.171.255.11 at port 445
error connecting to 10.171.255.11:445 (Connection refused)
Connecting to 10.171.255.11 at port 139
lsa_io_sec_qos: length c does not match size 8
cmd = adddriver "Windows NT x86" "mhx lab hp ps:PSCRIPT5.DLL: \
HP8000_7.PPD:ps5ui.dll,pscript.hlp:NULL:RAW:pscript.ntf"
Segmentation fault
Is there something wrong with the distro or with how I'm doing the
adddriver command? Do I need to get source and recompile it?
Thanks,
Rob
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR
Rob Tanner
2003-Aug-06 22:37 UTC
SOLVED!! [Samba] adddriver rpc command generates segmentation fault
--On Wednesday, August 06, 2003 08:51:16 AM -0700 Rob Tanner <rtanner+samba@linfield.edu> wrote:> This is the adddriver command and its output: > > rpcclient -Uroot%wDs1Tl0c -d3 -c 'adddriver "Windows NT x86" \ > "mhx lab hp ps:PSCRIPT5.DLL: \ > HP8000_7.PPD:ps5ui.dll,pscript.hlp: \ > NULL:RAW:pscript.ntf"' socrates > Initialising global parameters > params.c:pm_process() - Processing configuration file > "/etc/samba/smb.conf" Processing section "[global]" > added interface ip=10.219.255.249 bcast=10.219.255.255 nmask=255.255.0.0 > resolve_lmhosts: Attempting lmhosts lookup for name socrates<0x20> > resolve_hosts: Attempting host lookup for name socrates<0x20> > Connecting to host=socrates share=IPC$ > Connecting to 10.171.255.11 at port 445 > error connecting to 10.171.255.11:445 (Connection refused) > Connecting to 10.171.255.11 at port 139 > lsa_io_sec_qos: length c does not match size 8 > cmd = adddriver "Windows NT x86" "mhx lab hp ps:PSCRIPT5.DLL: \ > HP8000_7.PPD:ps5ui.dll,pscript.hlp:NULL:RAW:pscript.ntf" > Segmentation fault >One lousy comma where a colon ought to be. It would be helpful if the SAMBA system response came back as other than a segmentation fault. Doesn't the program check syntax when us goofy admins goof it up? -- Rob Rob Tanner UNIX Services Manager Linfield College, McMinnville OR
Reasonably Related Threads
- cupsaddsmb error: cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received
- Samba4 CUPS: NT_STATUS_ACCESS_DENIED opening remote file
- Samba 3 and cupsaddsmb
- Installing windows drivers into print$ on OS X 10.5 Leopard
- rpcclient: adddriver: lsa_io_sec_qos: length c does not match size 8