[Samba] samba domain authentication problem
Crump, Michael
mcrump at leadscope.com
Thu Feb 5 05:57:02 GMT 2004
Hello,
Sorry for the long post but I've been working on this for over a day now
and I haven't made any progress. I hope someone can help me with this.
I have created a new ad domain on a win2k server. I am not user
kerberos. I have the redhat enterprise linux 3 version of samba
installed on my machine.
I use:
net rpc join member -Uadmin%password -S adserver
to join the linux server to the domain
I then try:
smbclient -L localhost -Uadmin%password
to test the smb setup
I get the following error:
session setup failed: NT_STATUS_LOGON_FAILURE
and whenever I try to access the computer via win2k explorer it just
keeps prompting for a username and password no matter what I put in.
my smb.conf file is below:
[global]
workgroup = LEADSCOPE
security = domain
encrypt passwords = yes
password server = 192.168.1.210
server string = Samba %v on %L
netbios name = animal
[data]
comment = Shared Data
path = /data
read only = no
public = yes
nt acl support = yes
The output of smbclient -L localhost -Uadmin%password -d10 is below:
[2004/02/05 00:39:17, 5] lib/debug.c:debug_dump_status(359)
INFO: Current debug levels:
all: True/10
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
[2004/02/05 00:39:17, 3] param/loadparm.c:lp_load(3926)
lp_load: refreshing parameters
[2004/02/05 00:39:17, 3] param/loadparm.c:init_globals(1303)
Initialising global parameters
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset UCS-2LE
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(95)
Registered charset UCS-2LE
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset UTF8
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(95)
Registered charset UTF8
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset ASCII
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(95)
Registered charset ASCII
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset 646
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(95)
Registered charset 646
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset UCS2-HEX
[2004/02/05 00:39:17, 5] lib/iconv.c:smb_register_charset(95)
Registered charset UCS2-HEX
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 3] param/params.c:pm_process(566)
params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"
[2004/02/05 00:39:17, 3] param/loadparm.c:do_section(3429)
Processing section "[global]"
doing parameter workgroup = LEADSCOPE
doing parameter security = domain
doing parameter encrypt passwords = yes
doing parameter password server = 192.168.1.210
doing parameter server string = Samba %v on %L
doing parameter netbios name = animal
[2004/02/05 00:39:17, 4] param/loadparm.c:handle_netbios_name(2721)
handle_netbios_name: set global_myname to: ANIMAL
[2004/02/05 00:39:17, 4] param/loadparm.c:lp_load(3958)
pm_process() returned Yes
[2004/02/05 00:39:17, 7] param/loadparm.c:lp_servicenumber(4068)
lp_servicenumber: couldn't find homes
[2004/02/05 00:39:17, 10] param/loadparm.c:set_server_role(3876)
set_server_role: role = ROLE_DOMAIN_MEMBER
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'UTF-8' for LOCALE
[2004/02/05 00:39:17, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
[2004/02/05 00:39:17, 5] lib/util.c:init_names(292)
Netbios name list:-
my_netbios_names[0]="ANIMAL"
[2004/02/05 00:39:17, 3] client/client.c:main(2954)
Client started (version 3.0.0-14.3E).
[2004/02/05 00:39:17, 10] libsmb/namequery.c:internal_resolve_name(989)
internal_resolve_name: looking up localhost#20
[2004/02/05 00:39:17, 5] lib/gencache.c:gencache_init(59)
Opening cache file at /var/cache/samba/gencache.tdb
[2004/02/05 00:39:17, 10] lib/gencache.c:gencache_get(264)
Returning valid cache entry: key = NBT/LOCALHOST#20, value =
127.0.0.1:0, timeout = Thu Feb 5 00:41:38 2004
[2004/02/05 00:39:17, 5] libsmb/namecache.c:namecache_fetch(201)
name localhost#20 found.
[2004/02/05 00:39:17, 3] lib/util_sock.c:open_socket_out(690)
Connecting to 127.0.0.1 at port 445
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_KEEPALIVE = 0
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_REUSEADDR = 0
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_BROADCAST = 0
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option TCP_NODELAY = 1
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option IPTOS_LOWDELAY = 0
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option IPTOS_THROUGHPUT = 0
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDBUF = 50556
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVBUF = 87840
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDLOWAT = 1
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVLOWAT = 1
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDTIMEO = 0
[2004/02/05 00:39:17, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVTIMEO = 0
[2004/02/05 00:39:17, 4] client/client.c:do_connect(2563)
session request ok
[2004/02/05 00:39:17, 6] lib/util_sock.c:write_socket(407)
write_socket(4,183)
[2004/02/05 00:39:17, 6] lib/util_sock.c:write_socket(410)
write_socket(4,183) wrote 183
[2004/02/05 00:39:17, 10]
lib/util_sock.c:read_smb_length_return_keepalive(463)
got smb length of 127
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(478)
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(488)
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5321
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]= 65 (0x41)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]=51712 (0xCA00)
smb_vwv[ 8]= 20 (0x14)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=32995 (0x80E3)
smb_vwv[11]=32896 (0x8080)
smb_vwv[12]= 7920 (0x1EF0)
smb_vwv[13]=43621 (0xAA65)
smb_vwv[14]=50155 (0xC3EB)
smb_vwv[15]=11265 (0x2C01)
smb_vwv[16]=14849 (0x3A01)
smb_bcc=58
[2004/02/05 00:39:17, 10] lib/util.c:dump_data(1847)
[000] 61 6E 69 6D 61 6C 00 00 00 00 00 00 00 00 00 00 animal..
........
[010] 60 28 06 06 2B 06 01 05 05 02 A0 1E 30 1C A0 0E `(..+...
....0...
[020] 30 0C 06 0A 2B 06 01 04 01 82 37 02 02 0A A3 0A 0...+...
..7.....
[030] 30 08 A0 06 1B 04 4E 4F 4E 45 0.....NO NE
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(478)
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(488)
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5321
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]= 65 (0x41)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]=51712 (0xCA00)
smb_vwv[ 8]= 20 (0x14)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=32995 (0x80E3)
smb_vwv[11]=32896 (0x8080)
smb_vwv[12]= 7920 (0x1EF0)
smb_vwv[13]=43621 (0xAA65)
smb_vwv[14]=50155 (0xC3EB)
smb_vwv[15]=11265 (0x2C01)
smb_vwv[16]=14849 (0x3A01)
smb_bcc=58
[2004/02/05 00:39:17, 10] lib/util.c:dump_data(1847)
[000] 61 6E 69 6D 61 6C 00 00 00 00 00 00 00 00 00 00 animal..
........
[010] 60 28 06 06 2B 06 01 05 05 02 A0 1E 30 1C A0 0E `(..+...
....0...
[020] 30 0C 06 0A 2B 06 01 04 01 82 37 02 02 0A A3 0A 0...+...
..7.....
[030] 30 08 A0 06 1B 04 4E 4F 4E 45 0.....NO NE
[2004/02/05 00:39:17, 4] lib/time.c:get_serverzone(122)
Serverzone is 18000
[2004/02/05 00:39:17, 2]
libsmb/cliconnect.c:cli_session_setup_spnego(635)
Doing spnego session setup (blob length=58)
[2004/02/05 00:39:17, 3]
libsmb/cliconnect.c:cli_session_setup_spnego(660)
got OID=1 3 6 1 4 1 311 2 2 10
[2004/02/05 00:39:17, 3]
libsmb/cliconnect.c:cli_session_setup_spnego(667)
got principal=NONE
[2004/02/05 00:39:17, 6] lib/util_sock.c:write_socket(407)
write_socket(4,166)
[2004/02/05 00:39:17, 6] lib/util_sock.c:write_socket(410)
write_socket(4,166) wrote 166
[2004/02/05 00:39:17, 10]
lib/util_sock.c:read_smb_length_return_keepalive(463)
got smb length of 308
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(478)
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(488)
size=308
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5321
smb_uid=0
smb_mid=2
smt_wct=4
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 199 (0xC7)
smb_bcc=265
[2004/02/05 00:39:17, 10] lib/util.c:dump_data(1847)
[000] A1 81 C4 30 81 C1 A0 03 0A 01 01 A1 0C 06 0A 2B ...0....
.......+
[010] 06 01 04 01 82 37 02 02 0A A2 81 AB 04 81 A8 4E .....7..
.......N
[020] 54 4C 4D 53 53 50 00 02 00 00 00 12 00 12 00 30 TLMSSP..
.......0
[030] 00 00 00 05 02 81 20 5D 4B 12 C3 D0 D6 CA 21 00 ...... ]
K.....!.
[040] 00 00 00 00 00 00 00 66 00 66 00 42 00 00 00 4C .......f
.f.B...L
[050] 00 45 00 41 00 44 00 53 00 43 00 4F 00 50 00 45 .E.A.D.S
.C.O.P.E
[060] 00 02 00 12 00 4C 00 45 00 41 00 44 00 53 00 43 .....L.E
.A.D.S.C
[070] 00 4F 00 50 00 45 00 01 00 0C 00 41 00 4E 00 49 .O.P.E..
...A.N.I
[080] 00 4D 00 41 00 4C 00 04 00 1A 00 6C 00 65 00 61 .M.A.L..
...l.e.a
[090] 00 64 00 73 00 63 00 6F 00 70 00 65 00 2E 00 63 .d.s.c.o
.p.e...c
[0A0] 00 6F 00 6D 00 03 00 1A 00 6C 00 65 00 61 00 64 .o.m....
.l.e.a.d
[0B0] 00 73 00 63 00 6F 00 70 00 65 00 2E 00 63 00 6F .s.c.o.p
.e...c.o
[0C0] 00 6D 00 00 00 00 00 55 00 6E 00 69 00 78 00 00 .m.....U
.n.i.x..
[0D0] 00 53 00 61 00 6D 00 62 00 61 00 20 00 33 00 2E .S.a.m.b .a.
.3..
[0E0] 00 30 00 2E 00 30 00 2D 00 31 00 34 00 2E 00 33 .0...0.-
.1.4...3
[0F0] 00 45 00 00 00 4C 00 45 00 41 00 44 00 53 00 43 .E...L.E
.A.D.S.C
[100] 00 4F 00 50 00 45 00 00 00 .O.P.E.. .
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(478)
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(488)
size=308
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5321
smb_uid=0
smb_mid=2
smt_wct=4
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 199 (0xC7)
smb_bcc=265
[2004/02/05 00:39:17, 10] lib/util.c:dump_data(1847)
[000] A1 81 C4 30 81 C1 A0 03 0A 01 01 A1 0C 06 0A 2B ...0....
.......+
[010] 06 01 04 01 82 37 02 02 0A A2 81 AB 04 81 A8 4E .....7..
.......N
[020] 54 4C 4D 53 53 50 00 02 00 00 00 12 00 12 00 30 TLMSSP..
.......0
[030] 00 00 00 05 02 81 20 5D 4B 12 C3 D0 D6 CA 21 00 ...... ]
K.....!.
[040] 00 00 00 00 00 00 00 66 00 66 00 42 00 00 00 4C .......f
.f.B...L
[050] 00 45 00 41 00 44 00 53 00 43 00 4F 00 50 00 45 .E.A.D.S
.C.O.P.E
[060] 00 02 00 12 00 4C 00 45 00 41 00 44 00 53 00 43 .....L.E
.A.D.S.C
[070] 00 4F 00 50 00 45 00 01 00 0C 00 41 00 4E 00 49 .O.P.E..
...A.N.I
[080] 00 4D 00 41 00 4C 00 04 00 1A 00 6C 00 65 00 61 .M.A.L..
...l.e.a
[090] 00 64 00 73 00 63 00 6F 00 70 00 65 00 2E 00 63 .d.s.c.o
.p.e...c
[0A0] 00 6F 00 6D 00 03 00 1A 00 6C 00 65 00 61 00 64 .o.m....
.l.e.a.d
[0B0] 00 73 00 63 00 6F 00 70 00 65 00 2E 00 63 00 6F .s.c.o.p
.e...c.o
[0C0] 00 6D 00 00 00 00 00 55 00 6E 00 69 00 78 00 00 .m.....U
.n.i.x..
[0D0] 00 53 00 61 00 6D 00 62 00 61 00 20 00 33 00 2E .S.a.m.b .a.
.3..
[0E0] 00 30 00 2E 00 30 00 2D 00 31 00 34 00 2E 00 33 .0...0.-
.1.4...3
[0F0] 00 45 00 00 00 4C 00 45 00 41 00 44 00 53 00 43 .E...L.E
.A.D.S.C
[100] 00 4F 00 50 00 45 00 00 00 .O.P.E.. .
[2004/02/05 00:39:17, 3] libsmb/ntlmssp.c:ntlmssp_client_challenge(469)
Got challenge flags:
[2004/02/05 00:39:17, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
Got NTLMSSP neg_flags=0x20810205
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_CHAL_TARGET_INFO
NTLMSSP_NEGOTIATE_128
[2004/02/05 00:39:17, 3] libsmb/ntlmssp.c:ntlmssp_client_challenge(518)
NTLMSSP: Set final flags:
[2004/02/05 00:39:17, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
Got NTLMSSP neg_flags=0x20000215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_128
[2004/02/05 00:39:17, 6] lib/util_sock.c:write_socket(407)
write_socket(4,266)
[2004/02/05 00:39:17, 6] lib/util_sock.c:write_socket(410)
write_socket(4,266) wrote 266
[2004/02/05 00:39:17, 10]
lib/util_sock.c:read_smb_length_return_keepalive(463)
got smb length of 118
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(478)
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(488)
size=118
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5321
smb_uid=0
smb_mid=3
smt_wct=4
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 9 (0x9)
smb_bcc=75
[2004/02/05 00:39:17, 10] lib/util.c:dump_data(1847)
[000] A1 07 30 05 A0 03 0A 01 02 55 00 6E 00 69 00 78 ..0.....
.U.n.i.x
[010] 00 00 00 53 00 61 00 6D 00 62 00 61 00 20 00 33 ...S.a.m .b.a.
.3
[020] 00 2E 00 30 00 2E 00 30 00 2D 00 31 00 34 00 2E ...0...0
.-.1.4..
[030] 00 33 00 45 00 00 00 4C 00 45 00 41 00 44 00 53 .3.E...L
.E.A.D.S
[040] 00 43 00 4F 00 50 00 45 00 00 00 .C.O.P.E ...
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(478)
[2004/02/05 00:39:17, 5] lib/util.c:show_msg(488)
size=118
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5321
smb_uid=0
smb_mid=3
smt_wct=4
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 9 (0x9)
smb_bcc=75
[2004/02/05 00:39:17, 10] lib/util.c:dump_data(1847)
[000] A1 07 30 05 A0 03 0A 01 02 55 00 6E 00 69 00 78 ..0.....
.U.n.i.x
[010] 00 00 00 53 00 61 00 6D 00 62 00 61 00 20 00 33 ...S.a.m .b.a.
.3
[020] 00 2E 00 30 00 2E 00 30 00 2D 00 31 00 34 00 2E ...0...0
.-.1.4..
[030] 00 33 00 45 00 00 00 4C 00 45 00 41 00 44 00 53 .3.E...L
.E.A.D.S
[040] 00 43 00 4F 00 50 00 45 00 00 00 .C.O.P.E ...
[2004/02/05 00:39:17, 10] intl/lang_tdb.c:lang_tdb_init(135)
I would appreciate any help.
Thank you,
Michael
More information about the samba
mailing list