[Samba] adddriver rpc command generates segmentation fault

Rob Tanner rtanner+samba at linfield.edu
Wed Aug 6 15:51:16 GMT 2003


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






More information about the samba mailing list