[Samba] Problems with rpcclient

Initech initech at r00tserverz.net
Fri Dec 12 20:38:16 GMT 2003


Sorry to post 300 lines of junk to the list, but I set debug=9 in rpcclient before running the adddriver command, this is what I get:



rpcclient $> adddriver "Windows NT x86" "n0216-8000-ps:cupsdrvr.dll:n0216-8000-ps.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL"
write_socket(4,96)
write_socket(4,96) wrote 96
size=103
smb_com=0xa2
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=34
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=23296 (0x5B00)
smb_vwv[3]=369 (0x171)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_vwv[10]=0 (0x0)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=0 (0x0)
smb_vwv[13]=0 (0x0)
smb_vwv[14]=0 (0x0)
smb_vwv[15]=0 (0x0)
smb_vwv[16]=0 (0x0)
smb_vwv[17]=0 (0x0)
smb_vwv[18]=0 (0x0)
smb_vwv[19]=0 (0x0)
smb_vwv[20]=0 (0x0)
smb_vwv[21]=32768 (0x8000)
smb_vwv[22]=0 (0x0)
smb_vwv[23]=0 (0x0)
smb_vwv[24]=0 (0x0)
smb_vwv[25]=0 (0x0)
smb_vwv[26]=0 (0x0)
smb_vwv[27]=0 (0x0)
smb_vwv[28]=0 (0x0)
smb_vwv[29]=0 (0x0)
smb_vwv[30]=0 (0x0)
smb_vwv[31]=512 (0x200)
smb_vwv[32]=65280 (0xFF00)
smb_vwv[33]=5 (0x5)
smb_bcc=0
Bind RPC Pipe[715b]: \PIPE\spoolss
..+.H`
[010] 02 00 00 00                                       ....
000000 smb_io_rpc_hdr hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0b
    0003 flags     : 03
    0004 pack_type0: 10
    0005 pack_type1: 00
    0006 pack_type2: 00
    0007 pack_type3: 00
    0008 frag_len  : 0048
    000a auth_len  : 0000
    000c call_id   : 00000007
000010 smb_io_rpc_hdr_rb
    000010 smb_io_rpc_hdr_bba
        0010 max_tsize: 1630
        0012 max_rsize: 1630
        0014 assoc_gid: 00000000
    0018 num_elements: 00000001
    001c context_id  : 0000
    001e num_syntaxes: 01
    00001f smb_io_rpc_iface
        0020 data   : 12345678
        0024 data   : 1234
        0026 data   : abcd
        0028 data   : ef 00 01 23 45 67 89 ab
        0030 version: 00000001
    000034 smb_io_rpc_iface
        0034 data   : 8a885d04
        0038 data   : 1ceb
        003a data   : 11c9
        003c data   : 9f e8 08 00 2b 10 48 60
        0044 version: 00000002
rpc_api_pipe: cmd:26 fnum:715b
size=146
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=16385
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=16
smb_vwv[0]=0 (0x0)
smb_vwv[1]=72 (0x48)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=72 (0x48)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_vwv[10]=74 (0x4A)
smb_vwv[11]=72 (0x48)
smb_vwv[12]=74 (0x4A)
smb_vwv[13]=2 (0x2)
smb_vwv[14]=38 (0x26)
smb_vwv[15]=29019 (0x715B)
smb_bcc=79
write_socket(4,150)
write_socket(4,150) wrote 150
size=124
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=10
smb_vwv[0]=0 (0x0)
smb_vwv[1]=68 (0x44)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=68 (0x44)
smb_vwv[7]=56 (0x38)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=69
size=124
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=10
smb_vwv[0]=0 (0x0)
smb_vwv[1]=68 (0x44)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=68 (0x44)
smb_vwv[7]=56 (0x38)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=69
rpc_check_hdr: rdata->data_size = 68
000000 smb_io_rpc_hdr rpc_hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0c
    0003 flags     : 03
    0004 pack_type0: 10
    0005 pack_type1: 00
    0006 pack_type2: 00
    0007 pack_type3: 00
    0008 frag_len  : 0044
    000a auth_len  : 0000
    000c call_id   : 00000007
rpc_api_pipe: len left: 0 smbtrans read: 68
rpc_api_pipe: fragment first and last both set
rpc_pipe_bind: rpc_api_pipe returned OK.
000010 smb_io_rpc_hdr_ba
    000010 smb_io_rpc_hdr_bba
        0010 max_tsize: 1630
        0012 max_rsize: 1630
        0014 assoc_gid: 000053f0
    000018 smb_io_rpc_addr_str
        0018 len: 000e
        001a str: \PIPE\spoolss.
    000028 smb_io_rpc_results
        0028 num_results: 01
        002c result     : 0000
        002e reason     : 0000
    000030 smb_io_rpc_iface
        0030 data   : 8a885d04
        0034 data   : 1ceb
        0036 data   : 11c9
        0038 data   : 9f e8 08 00 2b 10 48 60
        0040 version: 00000002
bind_rpc_pipe: server pipe_name found: \PIPE\spoolss
bind_rpc_pipe: accepted!
make_spoolss_q_addprinterdriver
000000 spoolss_io_q_addprinterdriver
    0000 server_name_ptr: 00000001
    000004 smb_io_unistr2 server_name
        0004 uni_max_len: 0000000c
        0008 undoc      : 00000000
        000c uni_str_len: 0000000c
        0010 buffer     : \.\.L.O.C.A.L.H.O.S.T...
    0028 info_level: 00000003
    00002c spool_io_printer_driver_info_level
        002c level: 00000003
        0030 ptr: 00000001
        000034 spool_io_printer_driver_info_level_3
            0034 cversion: 00000002
            0038 name: 00000001
            003c environment: 00000001
            0040 driverpath: 00000001
            0044 datafile: 00000001
            0048 configfile: 00000001
            004c helpfile: 00000001
            0050 monitorname: 00000000
            0054 defaultdatatype: 00000001
            0058 dependentfilessize: 00000006
            005c dependentfiles: 00000001
            000060 smb_io_unistr2 name
                0060 uni_max_len: 0000000e
                0064 undoc      : 00000000
                0068 uni_str_len: 0000000e
                006c buffer     : n.0.2.1.6.-.8.0.0.0.-.p.s...
            000088 smb_io_unistr2 environment
                0088 uni_max_len: 0000000f
                008c undoc      : 00000000
                0090 uni_str_len: 0000000f
                0094 buffer     : W.i.n.d.o.w.s. .N.T. .x.8.6...
            0000b2 smb_io_unistr2 driverpath
                00b4 uni_max_len: 0000000d
                00b8 undoc      : 00000000
                00bc uni_str_len: 0000000d
                00c0 buffer     : c.u.p.s.d.r.v.r...d.l.l...
            0000da smb_io_unistr2 datafile
                00dc uni_max_len: 00000012
                00e0 undoc      : 00000000
                00e4 uni_str_len: 00000012
                00e8 buffer     : n.0.2.1.6.-.8.0.0.0.-.p.s...p.p.d...
            00010c smb_io_unistr2 configfile
                010c uni_max_len: 0000000b
                0110 undoc      : 00000000
                0114 uni_str_len: 0000000b
                0118 buffer     : c.u.p.s.u.i...d.l.l...
            00012e smb_io_unistr2 helpfile
                0130 uni_max_len: 00000009
                0134 undoc      : 00000000
                0138 uni_str_len: 00000009
                013c buffer     : c.u.p.s...h.l.p...
            00014e smb_io_unistr2 - NULL monitorname
            00014e smb_io_unistr2 defaultdatatype
                0150 uni_max_len: 00000004
                0154 undoc      : 00000000
                0158 uni_str_len: 00000004
                015c buffer     : R.A.W...
            000164 smb_io_buffer5
                0164 buf_len: 00000006
                0168 buffer: ..1 at .E1@....
rpc_api_pipe_req: Outgoing data not a multiple of 8 bytes....
create_rpc_request: opnum: 0x9 data_len: 0x18c
000000 smb_io_rpc_hdr hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 00
    0003 flags     : 03
    0004 pack_type0: 10
    0005 pack_type1: 00
    0006 pack_type2: 00
    0007 pack_type3: 00
    0008 frag_len  : 018c
    000a auth_len  : 0000
    000c call_id   : 00000008
000010 smb_io_rpc_hdr_req hdr_req
    0010 alloc_hint: 0000017c
    0014 context_id: 0000
    0016 opnum     : 0009
rpc_api_pipe: cmd:26 fnum:715b
size=470
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=16385
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=16
smb_vwv[0]=0 (0x0)
smb_vwv[1]=396 (0x18C)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=396 (0x18C)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_vwv[10]=74 (0x4A)
smb_vwv[11]=396 (0x18C)
smb_vwv[12]=74 (0x4A)
smb_vwv[13]=2 (0x2)
smb_vwv[14]=38 (0x26)
smb_vwv[15]=29019 (0x715B)
smb_bcc=403
write_socket(4,474)
write_socket(4,474) wrote 474
size=84
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=10
smb_vwv[0]=0 (0x0)
smb_vwv[1]=28 (0x1C)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=28 (0x1C)
smb_vwv[7]=56 (0x38)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=29
size=84
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=10
smb_vwv[0]=0 (0x0)
smb_vwv[1]=28 (0x1C)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=28 (0x1C)
smb_vwv[7]=56 (0x38)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=29
rpc_check_hdr: rdata->data_size = 28
000000 smb_io_rpc_hdr rpc_hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 02
    0003 flags     : 03
    0004 pack_type0: 10
    0005 pack_type1: 00
    0006 pack_type2: 00
    0007 pack_type3: 00
    0008 frag_len  : 001c
    000a auth_len  : 0000
    000c call_id   : 00000008
000010 smb_io_rpc_hdr_resp rpc_hdr_resp
    0010 alloc_hint: 00000004
    0014 context_id: 0000
    0016 cancel_ct : 00
    0017 reserved  : 00
rpc_api_pipe: len left: 0 smbtrans read: 28
rpc_api_pipe: fragment first and last both set
000018 spoolss_io_r_addprinterdriver
    0018 status: DOS code 0x00000013
write_socket(4,45)
write_socket(4,45) wrote 45
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=27782
smb_uid=100
smb_mid=1
smt_wct=0
smb_bcc=0
result was NT_STATUS_UNSUCCESSFUL

-- 
initech {huckster AT r00tserverz.net}
      _|            _|        _|                      
  _|_|_|    _|_|    _|_|_|          _|_|_|  _|_|_|    
_|    _|  _|_|_|_|  _|    _|  _|  _|    _|  _|    _|  
_|    _|  _|        _|    _|  _|  _|    _|  _|    _|  
  _|_|_|    _|_|_|  _|_|_|    _|    _|_|_|  _|    _|  
                                                      
[ Debian GNU/Linux http://www.debian.org ]


More information about the samba mailing list