[Samba] samba Win64 XP not authenticating logon and Failing
David Reta
DavidR at Narus.com
Tue May 23 20:49:26 GMT 2006
We currently built some new Windows XP 64 Bit systems and installed them
on the network. These are not able to connect to Samba shares. The XP 32
Bit systems have no problem connecting to the shares. I was using
samba3-3.0.22-26 and it was not working. I then downloaded 3.0.14a and
patched it with the following change and rebuilt it. This is still not
working.
Here is what I patched with.
if(p->out_data.data_sent_length + data_len >=
prs_offset(&p->out_data.rdata)) {
p->hdr.flags |= RPC_FLG_LAST;
- if ((auth_seal || auth_verify) && (data_len_left % 8)) {
+ if ((auth_seal || auth_verify ||
p->netsec_auth_validated) && (data_len_left % 8)) {
ss_padding_len = 8 - (data_len_left % 8);
DEBUG(10,("create_next_pdu: adding sign/seal
padding of %u\n",
ss_padding_len ));
Here is my smb.conf file.
[root at engrhomes bin]# ./testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[engr]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = REDWOODCITY
server string = Engineering Home Directories
interfaces = 192.168.7.90/25
security = SERVER
password server = 192.168.7.144
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No
wins server = 192.168.7.132
idmap uid = 6000-66000
idmap gid = 6000-66000
winbind use default domain = Yes
cups options = raw
[engr]
comment = Engineering Home Directories
path = /engr
read only = No
guest ok = Yes
Here is a copy of the debug from the Samba server.
socket option IPTOS_THROUGHPUT = 0
[2006/05/23 11:16:43, 5] lib/util_sock.c:print_socket_options(147)
socket option SO_SNDBUF = 16384
[2006/05/23 11:16:43, 5] lib/util_sock.c:print_socket_options(147)
socket option SO_RCVBUF = 16384
[2006/05/23 11:16:43, 5] lib/util_sock.c:print_socket_options(147)
socket option SO_SNDLOWAT = 1
[2006/05/23 11:16:43, 5] lib/util_sock.c:print_socket_options(147)
socket option SO_RCVLOWAT = 1
[2006/05/23 11:16:43, 5] lib/util_sock.c:print_socket_options(147)
socket option SO_SNDTIMEO = 0
[2006/05/23 11:16:43, 5] lib/util_sock.c:print_socket_options(147)
socket option SO_RCVTIMEO = 0
[2006/05/23 11:16:43, 3] auth/auth_server.c:server_cryptkey(75)
connected to password server 192.168.7.144
[2006/05/23 11:16:43, 3] auth/auth_server.c:server_cryptkey(100)
got session
[2006/05/23 11:16:43, 6] lib/util_sock.c:write_socket(449)
write_socket(26,183)
[2006/05/23 11:16:43, 6] lib/util_sock.c:write_socket(452)
write_socket(26,183) wrote 183
[2006/05/23 11:16:43, 10]
lib/util_sock.c:read_smb_length_return_keepalive(505)
got smb length of 109
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(464)
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(474)
size=109
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=53249
smb_tid=0
smb_pid=30051
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]=12815 (0x320F)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 65 (0x41)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]= 499 (0x1F3)
smb_vwv[11]=35328 (0x8A00)
smb_vwv[12]=51266 (0xC842)
smb_vwv[13]=38155 (0x950B)
smb_vwv[14]=50814 (0xC67E)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]= 2049 (0x801)
smb_bcc=40
[2006/05/23 11:16:43, 10] lib/util.c:dump_data(1995)
[000] B3 C9 17 EE 3D 17 69 79 52 00 45 00 44 00 57 00 ....=.iy
R.E.D.W.
[010] 4F 00 4F 00 44 00 43 00 49 00 54 00 59 00 00 00 O.O.D.C.
I.T.Y...
[020] 53 00 55 00 4E 00 00 00 S.U.N...
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(464)
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(474)
size=109
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=53249
smb_tid=0
smb_pid=30051
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]=12815 (0x320F)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 65 (0x41)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]= 499 (0x1F3)
smb_vwv[11]=35328 (0x8A00)
smb_vwv[12]=51266 (0xC842)
smb_vwv[13]=38155 (0x950B)
smb_vwv[14]=50814 (0xC67E)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]= 2049 (0x801)
smb_bcc=40
[2006/05/23 11:16:43, 10] lib/util.c:dump_data(1995)
[000] B3 C9 17 EE 3D 17 69 79 52 00 45 00 44 00 57 00 ....=.iy
R.E.D.W.
[010] 4F 00 4F 00 44 00 43 00 49 00 54 00 59 00 00 00 O.O.D.C.
I.T.Y...
[020] 53 00 55 00 4E 00 00 00 S.U.N...
[2006/05/23 11:16:43, 6] lib/util_sock.c:write_socket(449)
write_socket(26,92)
[2006/05/23 11:16:43, 6] lib/util_sock.c:write_socket(452)
write_socket(26,92) wrote 92
[2006/05/23 11:16:43, 10]
lib/util_sock.c:read_smb_length_return_keepalive(505)
got smb length of 193
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(464)
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(474)
size=193
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=53249
smb_tid=0
smb_pid=30051
smb_uid=45059
smb_mid=2
smt_wct=3
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 193 (0xC1)
smb_vwv[ 2]= 0 (0x0)
smb_bcc=152
[2006/05/23 11:16:43, 10] lib/util.c:dump_data(1995)
[000] 41 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 AW.i.n.d
.o.w.s.
[010] 00 53 00 65 00 72 00 76 00 65 00 72 00 20 00 32 .S.e.r.v .e.r.
.2
[020] 00 30 00 30 00 33 00 20 00 33 00 37 00 39 00 30 .0.0.3.
.3.7.9.0
[030] 00 20 00 53 00 65 00 72 00 76 00 69 00 63 00 65 . .S.e.r
.v.i.c.e
[040] 00 20 00 50 00 61 00 63 00 6B 00 20 00 31 00 00 . .P.a.c .k.
.1..
[050] 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 .W.i.n.d
.o.w.s.
[060] 00 53 00 65 00 72 00 76 00 65 00 72 00 20 00 32 .S.e.r.v .e.r.
.2
[070] 00 30 00 30 00 33 00 20 00 35 00 2E 00 32 00 00 .0.0.3.
.5...2..
[080] 00 52 00 45 00 44 00 57 00 4F 00 4F 00 44 00 43 .R.E.D.W
.O.O.D.C
[090] 00 49 00 54 00 59 00 00 .I.T.Y..
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(464)
[2006/05/23 11:16:43, 5] lib/util.c:show_msg(474)
size=193
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=53249
smb_tid=0
smb_pid=30051
smb_uid=45059
smb_mid=2
smt_wct=3
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 193 (0xC1)
smb_vwv[ 2]= 0 (0x0)
smb_bcc=152
[2006/05/23 11:16:43, 10] lib/util.c:dump_data(1995)
[000] 41 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 AW.i.n.d
.o.w.s.
[010] 00 53 00 65 00 72 00 76 00 65 00 72 00 20 00 32 .S.e.r.v .e.r.
.2
[020] 00 30 00 30 00 33 00 20 00 33 00 37 00 39 00 30 .0.0.3.
.3.7.9.0
[030] 00 20 00 53 00 65 00 72 00 76 00 69 00 63 00 65 . .S.e.r
.v.i.c.e
[040] 00 20 00 50 00 61 00 63 00 6B 00 20 00 31 00 00 . .P.a.c .k.
.1..
[050] 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 .W.i.n.d
.o.w.s.
[060] 00 53 00 65 00 72 00 76 00 65 00 72 00 20 00 32 .S.e.r.v .e.r.
.2
[070] 00 30 00 30 00 33 00 20 00 35 00 2E 00 32 00 00 .0.0.3.
.5...2..
[080] 00 52 00 45 00 44 00 57 00 4F 00 4F 00 44 00 43 .R.E.D.W
.O.O.D.C
[090] 00 49 00 54 00 59 00 00 .I.T.Y..
[2006/05/23 11:16:43, 10]
passdb/secrets.c:secrets_named_mutex_release(714)
secrets_named_mutex: released mutex for 192.168.7.144
[2006/05/23 11:16:43, 3] auth/auth_server.c:server_cryptkey(133)
password server OK
[2006/05/23 11:16:43, 3]
auth/auth_server.c:auth_get_challenge_server(183)
using password server validation
[2006/05/23 11:16:43, 5] auth/auth.c:get_ntlm_challenge(116)
auth_get_challenge: sucessfully got challenge from module smbserver
[2006/05/23 11:16:43, 5] auth/auth.c:get_ntlm_challenge(135)
auth_context challenge created by smbserver
[2006/05/23 11:16:43, 5] auth/auth.c:get_ntlm_challenge(136)
challenge is:
[2006/05/23 11:16:43, 5] lib/util.c:dump_data(1995)
[000] B3 C9 17 EE 3D 17 69 79 ....=.iy
[2006/05/23 11:16:43, 6] lib/util_sock.c:write_socket(449)
write_socket(5,288)
[2006/05/23 11:16:43, 6] lib/util_sock.c:write_socket(452)
write_socket(5,288) wrote 288
[2006/05/23 11:16:43, 10] lib/util_sock.c:read_socket_data(378)
read_socket_data: recv of 4 returned 0. Error = Success
[2006/05/23 11:16:43, 10] lib/util_sock.c:receive_smb_raw(556)
receive_smb_raw: length < 0!
[2006/05/23 11:16:43, 3] smbd/process.c:timeout_processing(1334)
timeout_processing: End of file from client (client has disconnected).
[2006/05/23 11:16:43, 5] lib/gencache.c:gencache_shutdown(88)
Closing cache file
[2006/05/23 11:16:43, 5] libsmb/namecache.c:namecache_shutdown(79)
namecache_shutdown: netbios namecache closed successfully.
[2006/05/23 11:16:43, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/05/23 11:16:43, 5] auth/auth_util.c:debug_nt_user_token(485)
NT user token: (NULL)
[2006/05/23 11:16:43, 5] auth/auth_util.c:debug_unix_user_token(506)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2006/05/23 11:16:43, 5] smbd/uid.c:change_to_root_user(296)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2006/05/23 11:16:43, 2] smbd/server.c:exit_server(609)
Closing connections
[2006/05/23 11:16:43, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
[2006/05/23 11:16:43, 5] smbd/oplock.c:receive_local_message(107)
receive_local_message: doing select with timeout of 1 ms
[2006/05/23 11:16:43, 3] smbd/server.c:exit_server(652)
Server exit (normal exit)
Any help would be appreciated.
Thanks,
David
This email and attachments may contain Narus, Inc. confidential material. If you are not the intended recipient, contact the sender immediately and delete all instances of this email and attachments.
More information about the samba
mailing list