Bug 3985 - msdfs broken with netbios aliases
Summary: msdfs broken with netbios aliases
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.23a
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
Depends on:
Reported: 2006-08-02 04:18 UTC by Björn Jacke
Modified: 2006-08-02 13:56 UTC (History)
0 users

See Also:

Patch (1.33 KB, patch)
2006-08-02 10:58 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2006-08-02 04:18:21 UTC
connections to a msdfs share do not work if client connect to a netbios alias.

Example and log:

netbios name = scudc01
netbios aliases = scudc
  msdfs proxy = \otherserver\foo
  msdfs root = yes

and a client connecting to \\scudc\netlogon will result in:

[2006/08/02 10:36:28, 10] smbd/msdfs.c:parse_dfs_path(44)
  temp in parse_dfs_path: .scudc\netlogon. after trimming \'s
[2006/08/02 10:36:28, 10] smbd/msdfs.c:parse_dfs_path(54)
  parse_dfs_path: hostname: scudc
[2006/08/02 10:36:28, 3] lib/util.c:interpret_addr(1273)
  sys_gethostbyname: Unknown host. scudc
[2006/08/02 10:36:28, 3] smbd/msdfs.c:get_referred_path(512)
  get_referred_path: Invalid hostname scudc in path \scudc\netlogon
[2006/08/02 10:36:28, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(4945) cmd=50 (SMBtrans2) NT_STATUS_NO_SUCH_FILE
Comment 1 Jeremy Allison 2006-08-02 10:58:35 UTC
Created attachment 2077 [details]

This should fix it. I'll check this in. Please test.
Comment 2 Björn Jacke 2006-08-02 13:53:11 UTC
looks good, thanks!
Comment 3 Jeremy Allison 2006-08-02 13:56:43 UTC
Fixed - Jerry please pick up for 3.0.23b.