[Samba] Problem with rpcclient command

Thomas Bork tombork at web.de
Mon Jul 28 20:00:56 GMT 2003


Hi Rob Tanner,

you wrote:

> The response I get is:
> 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
> abert<0x20>
> Connecting to host=abert share=IPC$
> Connecting to 10.225.25.100 at port 445
> lsa_io_sec_qos: length c does not match size 8
> cmd = getdriver "HP LaserJet 8000 Series PS"
> Error opening printer handle for HP LaserJet 8000 Series PS!
> result was NT_STATUS_UNSUCCESSFUL

Sorry, I cannot help you. I'm only a man with rpcclient problems too:

vmeis 1.0 # cupsaddsmb -U root -a -v
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c 'mkdir
W32X86;put /var/spool/cups/tmp/3f1aaa72b068a W32X86/drucker1.ppd;put
/usr/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put
/usr/share/cups/drivers/cupsui.dll W32X86/cupsui.dll;put
/usr/share/cups/drivers/cups.hlp W32X86/cups.hlp'
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[TOMMAIK] OS=[Unix] Server=[Samba 2.2.8a]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/3f1aaa72b068a as \W32X86/drucker1.ppd
(1869.7 kb/s) (average 1869.7 kb/s)
putting file /usr/share/cups/drivers/cupsdrvr.dll as
\W32X86/cupsdrvr.dll (10874.2 kb/s) (average 9373.5 kb/s)
putting file /usr/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll
(9164.7 kb/s) (average 9282.9 kb/s)
putting file /usr/share/cups/drivers/cups.hlp as \W32X86/cups.hlp
(4633.3 kb/s) (average 9033.8 kb/s)
######################################
OK
######################################

Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver
"Windows NT x86"
"drucker1:cupsdrvr.dll:drucker1.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL"'
cmd = adddriver "Windows NT x86"
"drucker1:cupsdrvr.dll:drucker1.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL"
Printer Driver drucker1 successfully installed.
######################################
OK
#######################################

Running command: rpcclient localhost -N -U'root%xxx' -c 'setdriver
drucker1 drucker1'
cmd = setdriver drucker1 drucker1
SetPrinter call failed!
result was NT_STATUS_UNSUCCESSFUL
#######################################
NOT OK
#######################################


vmeis 1.0 # rpcclient -Uroot%xxx -c 'enumprinters' localhost | grep -C2
drucker1
cmd = enumprinters
        flags:[0x800000]
        name:[\\localhost\drucker1]
        description:[\\localhost\drucker1,,Parallel_in_Tommis_Absteige]
        comment:[Parallel_in_Tommis_Absteige]
vmeis 1.0 # rpcclient -Uroot%xxx -c 'getprinter drucker1 2' localhost |
grep driver
        drivername:[]
vmeis 1.0 # rpcclient -Uroot%xxx -c 'getprinter drucker1 2' localhost |
grep -C4 driv
        servername:[\\localhost]
        printername:[\\localhost\drucker1]
        sharename:[drucker1]
        portname:[Samba Printer Port]
        drivername:[]
        comment:[Parallel_in_Tommis_Absteige]
        location:[]
        sepfile:[]
        printprocessor:[winprint]

vmeis 1.0 # rpcclient -Uroot%xxx -c 'getdriver drucker1' localhost
cmd = getdriver drucker1
vmeis 1.0 # rpcclient -Uroot%xxx -c 'enumdrivers 3' localhost |
grep -B2 -A5 drucker1
#####################################################################
No output
#####################################################################

No output? Samba doesn't recognizing printer drivers, but they are here:

vmeis 1.0 # ls -l /samba_printer_drivers/W32X86/
total 4
drwxr--r--    2 root     root         4096 Jul 20 17:24 2
vmeis 1.0 # ls -l /samba_printer_drivers/W32X86/2
total 520
-rwxr--r--    1 root     root        14234 Jul 20 18:09 cups.hlp
-rwxr--r--    1 root     root       278380 Jul 20 18:09 cupsdrvr.dll
-rwxr--r--    1 root     root       215848 Jul 20 18:09 cupsui.dll
-rwxr--r--    1 root     root         9573 Jul 20 18:09 drucker1.ppd

vmeis 1.0 # rpcclient -Uroot%xxx -c 'enumdrivers 3' localhost
cmd = enumdrivers 3

[Windows NT x86]
Segmentation fault
##############################################


vmeis 1.0 # rpcclient -d 3 -Uroot%xxx -c 'enumdrivers 3' localhost
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/smb.conf"
Processing section "[global]"
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
resolve_hosts: Attempting host lookup for name localhost<0x20>
Connecting to host=localhost share=IPC$
Connecting to 127.0.0.1 at port 445
error connecting to 127.0.0.1:445 (Connection refused)
Connecting to 127.0.0.1 at port 139
lsa_io_sec_qos: length c does not match size 8
cmd = enumdrivers 3

[Windows NT x86]
Segmentation fault
################################################

Above is a similar message as in you mail:
lsa_io_sec_qos: length c does not match size 8

Maybe this is the problem?

My configuration:
Samba is _not_ linked to cups
Samba version is 2.2.8a

cupsaddsmb and rpcclient are successfull, if samba is linked to cups.
But I want to print to cups over samba per lpr commands (because some
users of eisfair want to use lprng and other want to use cups) and there
is only one samba package for that and the point and print functions
should be used.


der tom




More information about the samba mailing list