Matt Anderson
2009-Apr-21 18:51 UTC
[Samba] Unable to browse Samba share by hostname from certain clients...
Dear Help, I am having a very odd problem. For some reason, I am able to browse to my Samba share by IP address but not by host name from Windows 2008 servers in a particular domain (the same domain the Samba server belongs to). However, I am able to browse by host name from XP clients as well as Windows 2008 servers in a different domain. Even stranger, if I add an alias (using the netbios aliases configuration option) on that same samba server, I can browse by name using the alias. I have spent countless hours searching on Google, etc., but just can't seem to figure out what's going on. Here is the global config on the Samba server: [global] workgroup = DOMAIN netbios name = HOST1 server string = HOST1 netbios aliases = HOST2 map to guest = Bad User obey pam restrictions = Yes password level = 5 username level = 5 log level = 2 log file = /usr/local/samba/var/samba.log logon path = logon home = preferred master = No domain master = No ldap ssl = no idmap backend = tdb idmap uid = 10000-20000 idmap gid = 10000-20000 template homedir = /homes/%U print command = qprt -dp -r -#v -#j -P %p -T '%J' %f veto files = /.?*/ dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd msdfs root = Yes I also took logs from browsing to the Samba server by hostname, and then by alias name, and found a couple things. When browsing by hostname, I end up getting the error: Failed to parse NTLMSSP packet, could not extract NTLMSSP command And then, during the set up before that, I noticed the following: Got secblob of size 1469 However, when I was browsing by Alias name, the log reported the following: Got secblob of size 40 So, I'm not entirely sure what's going on. If anyone has any advice, tips, or anything, I'd be glad to hear them! Thanks! Matt Log from browsing by host name: [2009/04/16 08:03:01, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(535) Doing spnego session setup [2009/04/16 08:03:01, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(566) NativeOS=[] NativeLanMan=[] PrimaryDomain=[] [2009/04/16 08:03:01, 3] smbd/sesssetup.c:reply_spnego_negotiate(444) Got OID 1 2 840 48018 1 2 2 [2009/04/16 08:03:01, 3] smbd/sesssetup.c:reply_spnego_negotiate(444) Got OID 1 2 840 113554 1 2 2 [2009/04/16 08:03:01, 3] smbd/sesssetup.c:reply_spnego_negotiate(444) Got OID 1 3 6 1 4 1 311 2 2 10 [2009/04/16 08:03:01, 3] smbd/sesssetup.c:reply_spnego_negotiate(447) Got secblob of size 1469 [2009/04/16 08:03:01, 5] auth/auth.c:make_auth_context_subsystem(480) Making default auth method list for standalone security=user, encrypt passwords = yes [2009/04/16 08:03:01, 5] auth/auth.c:load_auth_module(384) load_auth_module: Attempting to find an auth method to match guest [2009/04/16 08:03:01, 5] auth/auth.c:load_auth_module(409) load_auth_module: auth method guest has a valid init [2009/04/16 08:03:01, 5] auth/auth.c:load_auth_module(384) load_auth_module: Attempting to find an auth method to match sam [2009/04/16 08:03:01, 5] auth/auth.c:load_auth_module(409) load_auth_module: auth method sam has a valid init [2009/04/16 08:03:01, 1] libsmb/ntlmssp.c:ntlmssp_update(245) Failed to parse NTLMSSP packet, could not extract NTLMSSP command [2009/04/16 08:03:01, 2] lib/util.c:dump_data(1995) [000] 60 82 05 B9 06 09 2A 86 48 86 F7 12 01 02 02 01 `.....*. H....... [010] 00 6E 82 05 A8 30 82 05 A4 A0 03 02 01 05 A1 03 .n...0.. ........ [020] 02 01 0E A2 07 03 05 00 20 00 00 00 A3 82 04 A2 ........ ....... [030] 61 82 04 9E 30 82 04 9A A0 03 02 01 05 A1 0C 1B a...0... ........ [040] 0A 50 48 53 59 45 53 2E 43 4F 4D A2 25 30 23 A0 .DOMAIN. COM.%0#. [050] 03 02 01 02 A1 1C 30 1A 1B 04 63 69 66 73 1B 12 ......0. ..cifs.. [060] 70 68 73 2D 6F 6E 65 2E 70 68 73 79 65 73 2E 63 HOST1. DOMAIN.c [070] 6F 6D A3 82 04 5C 30 82 04 58 A0 03 02 01 17 A1 om...\0. .X...... [080] 03 02 01 02 A2 82 04 4A 04 82 04 46 FF 4D 65 BB .......J ...F.Me. [090] 4E 69 4C E5 72 CB 5C AE 62 67 75 BF B3 2E 3C 0E NiL.r.\. bgu...<. [0A0] 3A 67 FE 27 01 BC 03 C7 08 AE D6 5C 71 23 57 12 :g.'.... ...\q#W. [0B0] 1D 32 4A 68 5D 3C 36 23 33 26 80 0F D7 31 44 3E .2Jh]<6# 3&...1D> [0C0] 51 AA 8A 8B BA 7A CC 92 79 7A 34 F8 BD AF 6B 3B Q....z.. yz4...k; [0D0] FA F7 00 3C DD 76 97 74 9A 02 4A 85 E2 BF 81 E8 ...<.v.t ..J..... [0E0] F4 75 15 9F FC 00 C6 4F A9 E0 01 05 35 A9 0C CC .u.....O ....5... [0F0] FD 55 C4 00 DD 6A 6E D4 77 BE C9 25 CA 6D 78 0B .U...jn. w..%.mx. [100] 72 78 51 47 1E E9 A0 78 28 8A 40 5C EF EA 2A CC rxQG...x (.@\..*. [110] E2 FE 17 3A EE 6F 10 34 D7 86 E0 8B 9D 79 7E F9 ...:.o.4 .....y~. [120] 87 94 E9 B5 51 CE 5A F9 89 61 75 A7 B2 5F D3 2E ....Q.Z. .au.._.. [130] 6E 66 8B 6D 9D 3F 7B A3 57 E0 BE 8B DE E7 3E 2E nf.m.?{. W.....>. [140] F3 08 41 90 9F D8 1F B7 5B 4D 5F 29 B3 59 19 15 ..A..... [M_).Y.. [150] 67 14 CF FA 06 E4 DE FC 17 6A 46 DF DF B4 4E 97 g....... .jF...N. [160] 17 18 AE 65 B3 D4 64 B1 52 0C 9D A8 5E 9F B8 00 ...e..d. R...^... [170] 84 FF FD A6 5B 9F 09 67 EC DA B7 51 9F C8 8B E0 ....[..g ...Q.... [180] 4F 83 95 36 09 17 BD 10 44 E5 B3 27 1E 8E 04 01 O..6.... D..'.... [190] 89 E5 95 BE 6E 95 95 D3 92 2E 16 6B 88 4E D8 B1 ....n... ...k.N.. [1A0] 44 E1 EF B2 2F 84 81 D9 15 95 2A AA 23 EC 09 0E D.../... ..*.#... [1B0] 85 C9 FF 38 F5 C2 EF E4 24 45 07 B0 C7 48 1E 2F ...8.... $E...H./ [1C0] C4 59 A4 0D EC E6 85 9F 88 03 94 21 EB F7 F1 95 .Y...... ...!.... [1D0] A4 0C 9B B1 BF 1B 42 BD CC 50 69 10 77 68 FB 6F ......B. .Pi.wh.o [1E0] 76 88 B1 3E D2 83 4C 53 14 42 EF 8B B1 75 66 52 v..>..LS .B...ufR [1F0] C1 AA 0C F2 09 EC FD 21 9E 2E B0 31 64 D7 4F 29 .......! ...1d.O) [200] 4F 94 EA D6 C7 72 9E 48 4A 02 FE 89 BA 1A 34 53 O....r.H J.....4S [210] F0 4E 1A 5F F4 49 67 B5 18 72 A4 51 37 22 0A 3D .N._.Ig. .r.Q7". [220] 18 7B CF E4 61 20 87 0B 41 63 71 F8 61 F4 89 BE .{..a .. Acq.a... [230] 8E 8D 49 52 22 13 78 9C 1F 65 B5 04 A8 4B 37 DE ..IR".x. .e...K7. [240] 0A A6 84 95 A0 63 FB D7 46 DF F9 2B 5B F3 E0 84 .....c.. F..+[... [250] 5E 50 C8 EC 75 9B A7 1B 49 28 1F 61 05 62 04 6B ^P..u... I(.a.b.k [260] 02 12 2A 7F 3B 54 FA 7A 97 C8 89 8A 97 E2 E9 F6 ..*.;T.z ........ [270] E8 17 03 1B 3D 84 87 7B A9 DD 6E FC 6D 9F 76 81 ....=..{ ..n.m.v. [280] F8 25 43 73 8E 81 B4 1B 4C 41 E8 CC 3E 68 14 7B .%Cs.... LA..>h.{ [290] 58 E8 7C F0 0E D0 73 3B 73 93 75 AC 61 B8 AD 3E X.|...s; s.u.a..> [2A0] B6 55 A1 2A DA B5 55 28 18 D0 89 72 B8 FA D5 3C .U.*..U( ...r...< [2B0] C2 47 9B 21 25 28 D8 FB 37 6C 13 B0 EC 21 F3 57 .G.!%(.. 7l...!.W [2C0] 37 98 FC 0A 88 5B 23 25 C9 F9 90 55 AC FE 2F AD 7....[#% ...U../. [2D0] E0 44 2B 00 C1 BB 0C B3 9C E4 B4 47 5C 13 DD B1 .D+..... ...G\... [2E0] 78 DE 0A 4F 30 C4 7D 18 9C 48 BD D3 89 27 18 0F x..O0.}. .H...'.. [2F0] 80 07 72 7F 1E 1B F1 46 9C 55 C9 0A AD 51 6C 3F ..r....F .U...Ql? [300] 4B 1A 40 9C AC 91 7C 1D 0F 01 22 71 14 C0 27 A5 K.@...|. .."q..'. [310] 6E F6 0E 10 38 7C 8C 53 E4 22 0A 04 42 24 DA 06 n...8|.S ."..B$.. [320] 61 3A FE 85 14 94 51 37 DB D1 D9 87 E3 2A E7 CB a:....Q7 .....*.. [330] E4 D9 67 FF DA 99 09 43 F0 36 18 45 DA CD 00 A2 ..g....C .6.E.... [340] D4 FD EF F8 77 87 A3 AB 46 02 6F 72 92 BD ED 4C ....w... F.or...L [350] 8F 0B 7F 3C 10 B3 D9 6D BE 09 48 04 D0 A8 C9 66 ...<...m ..H....f [360] 05 3D C8 F6 ED 2C A3 FE F6 47 A9 08 94 CC 8C 91 .=...,.. .G...... [370] D9 A1 46 6E F8 FB 06 C1 2C AC 88 1D 95 66 1B 2A ..Fn.... ,....f.* [380] 0B EE E3 64 D1 E7 C7 81 B8 66 7A A0 1B 9E A8 98 ...d.... .fz..... [390] 3F 88 42 50 14 A2 4E FB 95 FA E4 3A 3F 90 79 B1 ?.BP..N. ...:?.y. [3A0] 32 1D CB C1 B5 BE 58 59 5F 68 44 C5 A7 D5 2C 18 2.....XY _hD...,. [3B0] E6 F1 B3 AC 6D 62 96 79 E8 C1 30 DE 4B 61 EB 6D ....mb.y ..0.Ka.m [3C0] 28 2D 83 44 8E FB 50 25 87 75 8F 9F E8 F2 F8 EF (-.D..P% .u...... [3D0] F2 17 F7 0E 56 9B 34 12 8E 10 FD DC 14 69 DC CB ....V.4. .....i.. [3E0] FA 98 95 63 6B 09 2B E9 F4 A8 45 21 9D B1 06 03 ...ck.+. ..E!.... [3F0] 4C 05 AA 4F 6F E2 2E AC 60 24 E6 26 E0 7C 5F B2 L..Oo... `$.&.|_. [400] 5B BE D9 20 15 47 D9 85 E5 89 8E 7C 42 85 CD DF [.. .G.. ...|B... [410] 29 8C A1 98 2A C2 4B AB D9 82 1C DF 5F 72 4D CF )...*.K. ...._rM. [420] D7 73 64 4C EC 24 1E C6 38 5C 3C A9 21 47 09 73 .sdL.$.. 8\<.!G.s [430] 0A 13 E9 55 5D 40 AE 7B 92 F4 39 5D 8C 4D E8 B5 ...U]@.{ ..9].M.. [440] BE DE D5 8B E0 4E 4B 5B 1E 81 D8 77 29 6B D3 98 .....NK[ ...w)k.. [450] 03 79 AA 0C AD A5 AA 63 3A 54 08 69 9B B8 2C 89 .y.....c :T.i..,. [460] F3 5C FF AD 19 58 59 27 C7 2F BE 96 F0 53 02 B0 .\...XY' ./...S.. [470] D0 1B 21 90 AA BE 9E 2F DD 61 05 D7 DD B6 D4 C7 ..!..../ .a...... [480] 1A 7D B1 96 77 AA 12 13 4B 58 76 96 E2 98 5B 19 .}..w... KXv...[. [490] A2 17 4A 78 4F E0 27 F4 31 B9 E7 49 8F 4F FE CD ..JxO.'. 1..I.O.. [4A0] E8 14 C3 0A F6 4C 91 DB BE A6 7C C1 E4 B2 E3 BE .....L.. ..|..... [4B0] 32 71 B4 ED B5 7B 05 61 75 D8 47 E7 F9 2E B7 05 2q...{.a u.G..... [4C0] 23 3D DA 24 C1 76 D6 68 9D 4A 0F F8 BF 41 4D DD #=.$.v.h .J...AM. [4D0] D7 E0 A4 81 E8 30 81 E5 A0 03 02 01 17 A2 81 DD .....0.. ........ [4E0] 04 81 DA 57 B5 12 66 02 60 BB BC 72 37 90 18 08 ...W..f. `..r7... [4F0] FF 98 74 DB 7B D0 D8 08 3C 8A FB 5F 7C 6A 1E 9E ..t.{... <.._|j.. [500] BA 9C 71 3C AE D9 AF 04 EE 8B 53 28 53 4A 5E D3 ..q<.... ..S(SJ^. [510] 2B 6B D9 46 5D 1F 9E 57 8E 56 16 37 9F 23 16 9D +k.F]..W .V.7.#.. [520] 47 80 E2 B1 F5 DB 58 A1 3D 0C 64 AD 13 45 7A 6E G.....X. =.d..Ezn [530] FD D5 69 FD 9B 05 E5 6A 1F 83 D8 98 09 E6 88 1F ..i....j ........ [540] 5B 3F E4 A0 3C B3 08 88 E4 61 95 8F 05 BD 49 74 [?..<... .a....It [550] 63 E5 01 86 E3 C2 E9 59 C5 DA C1 10 45 CE BE 33 c......Y ....E..3 [560] 50 BD F5 68 CA 6D EF 00 13 18 89 F2 3B 1B 10 00 P..h.m.. ....;... [570] 15 2F 8D EA 88 B9 EC 6E FC 47 3E 2B D3 64 0D 52 ./.....n .G>+.d.R [580] 67 61 88 82 F6 30 C8 9A E8 3D BD 7F F5 3C 4B 2B ga...0.. .=...<K+ [590] 28 B6 63 E6 5C 73 2F 9C C3 AD 62 B1 E6 F2 EE 3E (.c.\s/. ..b....> [5A0] 39 18 80 E0 40 14 4E 11 DA F4 44 FC 84 14 74 69 9...@.N. ..D...ti [5B0] 39 72 F0 F2 F3 10 D6 98 D7 E4 92 47 56 9r...... ...GV [2009/04/16 08:03:11, 3] smbd/process.c:timeout_processing(1334) timeout_processing: End of file from client (client has disconnected). Log from browsing by alias name: [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(535) Doing spnego session setup [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(566) NativeOS=[] NativeLanMan=[] PrimaryDomain=[] [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_spnego_negotiate(444) Got OID 1 3 6 1 4 1 311 2 2 10 [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_spnego_negotiate(447) Got secblob of size 40 [2009/04/21 11:27:16, 5] auth/auth.c:make_auth_context_subsystem(480) Making default auth method list for standalone security=user, encrypt passwords = yes [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend rhosts [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'rhosts' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend hostsequiv [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'hostsequiv' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend sam [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'sam' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend sam_ignoredomain [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'sam_ignoredomain' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend unix [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'unix' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend winbind [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'winbind' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend smbserver [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'smbserver' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend trustdomain [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'trustdomain' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend ntdomain [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'ntdomain' [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(45) Attempting to register auth backend guest [2009/04/21 11:27:16, 5] auth/auth.c:smb_register_auth(57) Successfully added auth method 'guest' [2009/04/21 11:27:16, 5] auth/auth.c:load_auth_module(384) load_auth_module: Attempting to find an auth method to match guest [2009/04/21 11:27:16, 5] auth/auth.c:load_auth_module(409) load_auth_module: auth method guest has a valid init [2009/04/21 11:27:16, 5] auth/auth.c:load_auth_module(384) load_auth_module: Attempting to find an auth method to match sam [2009/04/21 11:27:16, 5] auth/auth.c:load_auth_module(409) load_auth_module: auth method sam has a valid init [2009/04/21 11:27:16, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62) Got NTLMSSP neg_flags=0xe2088297 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_NEGOTIATE_OEM NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_LM_KEY NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_ALWAYS_SIGN NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH [2009/04/21 11:27:16, 5] auth/auth.c:get_ntlm_challenge(95) auth_get_challenge: module guest did not want to specify a challenge [2009/04/21 11:27:16, 5] auth/auth.c:get_ntlm_challenge(95) auth_get_challenge: module sam did not want to specify a challenge [2009/04/21 11:27:16, 5] auth/auth.c:get_ntlm_challenge(135) auth_context challenge created by random [2009/04/21 11:27:16, 5] auth/auth.c:get_ntlm_challenge(136) challenge is: [2009/04/21 11:27:16, 5] lib/util.c:dump_data(1995) [000] 00 62 C7 FD 96 CC 19 B5 .b...... [2009/04/21 11:27:16, 3] smbd/process.c:process_smb(1091) Transaction 2 of length 420 [2009/04/21 11:27:16, 5] lib/util.c:show_msg(464) [2009/04/21 11:27:16, 5] lib/util.c:show_msg(474) size=416 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51207 smb_tid=65535 smb_pid=65279 smb_uid=0 smb_mid=128 smt_wct=12 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]=16644 (0x4104) smb_vwv[ 3]= 50 (0x32) smb_vwv[ 4]= 0 (0x0) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 0 (0x0) smb_vwv[ 7]= 352 (0x160) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]= 0 (0x0) smb_vwv[10]= 212 (0xD4) smb_vwv[11]=40960 (0xA000) smb_bcc=357 [2009/04/21 11:27:16, 3] smbd/process.c:switch_message(886) switch message SMBsesssetupX (pid 6115414) conn 0x0 [2009/04/21 11:27:16, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2009/04/21 11:27:16, 5] auth/auth_util.c:debug_nt_user_token(485) NT user token: (NULL) [2009/04/21 11:27:16, 5] auth/auth_util.c:debug_unix_user_token(506) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2009/04/21 11:27:16, 5] smbd/uid.c:change_to_root_user(296) change_to_root_user: now uid=(0,0) gid=(0,0) [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_sesssetup_and_X(655) wct=12 flg2=0xc807 [2009/04/21 11:27:16, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(535) Doing spnego session setup [2009/04/21 11:27:16, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(566) NativeOS=[] NativeLanMan=[] PrimaryDomain=[] [2009/04/21 11:27:16, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(606) Got user=[Administrator] domain=[DOMAIN] workstation=[CLIENT] len1=24 len2=162