Getting SAMBA 2.0.0 (SGI's compile) and HP's AS/U LanMan playing nice

ulairi ulairi at jps.net
Mon Feb 14 03:04:13 GMT 2000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The following is a level-10 debug log of the SAMBA machine attempting to
join the CSUN2K domain administered by  AS/U 9000 LANMAN daemon on HP9K1
(HP-UX 11.00) v B.04.03, NetBIOS v B.04.04

The procedure for doing this is two-fold.
First, I went into the Server Manager and added the NetBIOS name of the
SAMBA server to the CSUN2K SAM database.
Second: I need to run this command.

There are no errors reported by elfread -d system, elfread -d security, or
elfread -d application on the AS/U LANMAN box.

# smbpasswd -j CSUN2K -r HP9K1 -D 10
<SNIP the /dev enumeration>
resolve_name: Attempting lmhosts lookup for name HP9K1
startlmhosts: Can't open lmhosts file /usr/samba/lib/lmhosts. Error was No
such
file or directory
resolve_name: Attempting host lookup for name HP9K1
Connecting to 130.166.1.40 at port 139
write_socket(4,76)
write_socket(4,76) wrote 76
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
write_socket(4,168)
write_socket(4,168) wrote 168
got smb length of 94
size=94
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=3
smb_tid=0
smb_pid=47917
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=1024 (0x400)
smb_vwv[4]=17 (0x11)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=128 (0x80)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=64768 (0xFD00)
smb_vwv[10]=1 (0x1)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=14056 (0x36E8)
smb_vwv[13]=49793 (0xC281)
smb_vwv[14]=49012 (0xBF74)
smb_vwv[15]=57345 (0xE001)
smb_vwv[16]=2049 (0x801)
smb_bcc=22
[000] 62 05 58 14 24 3A 2C E0  00 63 00 73 00 75 00 6E  b.X.$:,. .c.s.u.n
[010] 00 32 00 6B 00 00                                 .2.k..
size=94
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=3
smb_tid=0
smb_pid=47917
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=1024 (0x400)
smb_vwv[4]=17 (0x11)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=128 (0x80)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=64768 (0xFD00)
smb_vwv[10]=1 (0x1)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=14056 (0x36E8)
smb_vwv[13]=49793 (0xC281)
smb_vwv[14]=49012 (0xBF74)
smb_vwv[15]=57345 (0xE001)
smb_vwv[16]=2049 (0x801)
smb_bcc=22
[000] 62 05 58 14 24 3A 2C E0  00 63 00 73 00 75 00 6E  b.X.$:,. .c.s.u.n
[010] 00 32 00 6B 00 00                                 .2.k..
write_socket(4,78)
write_socket(4,78) wrote 78
got smb length of 98
size=98
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=3
smb_tid=0
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_bcc=57
[000] 55 4E 49 58 20 42 2E 31  31 2E 30 30 20 55 00 41  UNIX B.1 1.00 U.A
[010] 64 76 61 6E 63 65 64 20  53 65 72 76 65 72 20 66  dvanced  Server f
[020] 6F 72 20 48 50 39 30 30  30 20 53 79 73 74 65 6D  or HP900 0 System
[030] 73 00 63 73 75 6E 32 6B  00                       s.csun2k .
size=98
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=3
smb_tid=0
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_bcc=57
[000] 55 4E 49 58 20 42 2E 31  31 2E 30 30 20 55 00 41  UNIX B.1 1.00 U.A
[010] 64 76 61 6E 63 65 64 20  53 65 72 76 65 72 20 66  dvanced  Server f
[020] 6F 72 20 48 50 39 30 30  30 20 53 79 73 74 65 6D  or HP900 0 System
[030] 73 00 63 73 75 6E 32 6B  00                       s.csun2k .
write_socket(4,65)
write_socket(4,65) wrote 65
got smb length of 50
size=50
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_bcc=9
[000] 49 50 43 00 4E 54 46 53  00                       IPC.NTFS .
write_socket(4,97)
write_socket(4,97) wrote 97
got smb length of 103
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=47917
smb_uid=32894
smb_mid=1
smt_wct=34
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=512 (0x200)
smb_vwv[3]=256 (0x100)
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]=0 (0x0)
smb_vwv[33]=5 (0x5)
smb_bcc=0
Bind RPC Pipe[2]: \PIPE\NETLOGON
Bind Abstract Syntax: [000] 78 56 34 12 34 12 CD AB  EF 00 01 23 45 67 CF FB
xV
4.4... ...#Eg..
[010] 00 00 00 01                                       ....
Bind Transfer Syntax: [000] 04 5D 88 8A EB 1C C9 11  9F E8 08 00 2B 10 48 60
.]...... ....+.H`
[010] 00 00 00 02                                       ....
000000 smb_io_rpc_hdr_rb
    000000 smb_io_rpc_hdr_bba
        0000 max_tsize: 1630
        0002 max_rsize: 1630
        0004 assoc_gid: 00000000
    0008 num_elements: 00000001
    000c context_id  : 0000
    000e num_syntaxes: 01
    00000f smb_io_rpc_iface
        0010 data   : 78 56 34 12 34 12 cd ab ef 00 01 23 45 67 cf fb
        0020 version: 00000001
    000024 smb_io_rpc_iface
        0024 data   : 04 5d 88 8a eb 1c c9 11 9f e8 08 00 2b 10 48 60
        0034 version: 00000002
000000 smb_io_rpc_hdr hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0b
    0003 flags     : 00
    0004 pack_type : 00000010
    0008 frag_len  : 0048
    000a auth_len  : 0000
    000c call_id   : 00000001
rpc_api_pipe: cmd:26 fnum:2
size=148
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=1
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=16
smb_vwv[0]=0 (0x0)
smb_vwv[1]=72 (0x48)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=1024 (0x400)
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]=76 (0x4C)
smb_vwv[11]=72 (0x48)
smb_vwv[12]=76 (0x4C)
smb_vwv[13]=2 (0x2)
smb_vwv[14]=38 (0x26)
smb_vwv[15]=2 (0x2)
smb_bcc=81
[000] 5C 50 49 50 45 5C 00 00  00 05 00 0B 00 10 00 00  \PIPE\.. ........
[010] 00 48 00 00 00 01 00 00  00 30 16 30 16 00 00 00  .H...... .0.0....
[020] 00 01 00 00 00 00 00 01  00 78 56 34 12 34 12 CD  ........ .xV4.4..
[030] AB EF 00 01 23 45 67 CF  FB 01 00 00 00 04 5D 88  ....#Eg. ......].
[040] 8A EB 1C C9 11 9F E8 08  00 2B 10 48 60 02 00 00  ........ .+.H`...
[050] 00                                                .
write_socket(4,152)
write_socket(4,152) wrote 152
got smb length of 112
size=112
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=10
smb_vwv[0]=0 (0x0)
smb_vwv[1]=56 (0x38)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=55 (0x37)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=56 (0x38)
smb_vwv[7]=56 (0x38)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=57
[000] 00 05 00 0C 00 00 00 00  00 00 38 00 00 00 00 00  ........ ..8.....
[010] 00 08 00 08 00 00 00 01  76 00 00 00 00 01 00 01  ........ v.......
[020] 00 00 00 00 00 8A 88 5D  04 1C EB 11 C9 9F E8 08  .......] ........
[030] 00 2B 10 48 60 00 00 00  02                       .+.H`... .
size=112
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=10
smb_vwv[0]=0 (0x0)
smb_vwv[1]=56 (0x38)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=0 (0x0)
smb_vwv[4]=55 (0x37)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=56 (0x38)
smb_vwv[7]=56 (0x38)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=57
[000] 00 05 00 0C 00 00 00 00  00 00 38 00 00 00 00 00  ........ ..8.....
[010] 00 08 00 08 00 00 00 01  76 00 00 00 00 01 00 01  ........ v.......
[020] 00 00 00 00 00 8A 88 5D  04 1C EB 11 C9 9F E8 08  .......] ........
[030] 00 2B 10 48 60 00 00 00  02                       .+.H`... .
Realloc asked for 0 bytes
rpc_check_hdr: rdata->data->data_used: 56
000000 smb_io_rpc_hdr rpc_hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 0c
    0003 flags     : 00
    0004 pack_type : 00000000
    0008 frag_len  : 3800
    000a auth_len  : 0000
    000c call_id   : 00000000
rpc_check_hdr: (after smb_io_rpc_hdr call) rdata->data->data_used: 56
rpc_api_pipe: bug in AS/U, setting fragment first/last ON
rpc_api_pipe: len left: 14280 smbtrans read: 56
rpc_read: data_to_read: 14280 data offset: 56 file offset: 0
rpc_read: grow buffer to 14336
rpc_read: read offset: 0 read: 0 to read: 14280
rpc_read: offset end: 0x38.  data left to read:0x37c8
rpc_api_pipe: fragment first and last both set
rpc_api_pipe: return OK
000010 smb_io_rpc_hdr_ba
    000010 smb_io_rpc_hdr_bba
        0010 max_tsize: 0008
        0012 max_rsize: 0008
        0014 assoc_gid: 76010000
    000018 smb_io_rpc_addr_str
        0018 len: 0000
        001a str:
    00001a smb_io_rpc_results
        001c num_results: 01
        0020 result     : 0000
        0022 reason     : 0000
    000024 smb_io_rpc_iface
        0024 data   : 8a 88 5d 04 1c eb 11 c9 9f e8 08 00 2b 10 48 60
        0034 version: 02000000
bind_rpc_pipe: transfer syntax differs
cli_nt_session_open: rpc bind failed. Error was code 0
write_socket(4,45)
write_socket(4,45) wrote 45
got smb length of 35
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=47917
smb_uid=32894
smb_mid=1
smt_wct=0
smb_bcc=0
modify_trust_password: unable to open the domain client session to machine
HP9K1
. Error was : code 0.
write_socket(4,45)
write_socket(4,45) wrote 45
got smb length of 35
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=47917
smb_uid=32894
smb_mid=1
smt_wct=0
smb_bcc=0
write_socket(4,43)
write_socket(4,43) wrote 43
got smb length of 39
size=39
smb_com=0x74
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=47917
smb_uid=32894
smb_mid=1
smt_wct=2
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_bcc=0
2000/02/11 11:08:40 : change_trust_account_password: Failed to change
password f
or domain CSUN2K.

ulairi at icnt.net <mailto:ulairi at icnt.net>

To achieve victory when it is within the ken of the common herd is not the
acme
of excellence. Nor is it the true acme of excellence when you win and the
whole
empire says, "Well done!". True excellence is to plan secretly, to move
surreptitiously, to foil the enemy's plans and to balk his schemes, so that
at
the end, the day is won without shedding a drop of blood.

                                San Tzu, The Art of War. [6th Century.
B.C.E.]
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 Int. for non-commercial use
<http://www.pgpinternational.com>

iQA/AwUBOKdwrFR8Yh25VFLEEQK+SwCfYh1C8J7qRakH/Vk7d6HtRrN6J40An1RT
YojR1P5hOMfajHn1JJpZsROo
=hYaD
-----END PGP SIGNATURE-----



More information about the samba mailing list