[Samba] Can't get MSDFS to work, help!
Pierre Belanger
pbelang1 at oss.cantel.rogers.com
Mon May 6 06:04:02 GMT 2002
Hello all,
I was able to made it work with a Windows 2000 client. So I guess
I am missing something on my Windows NT4 client or there's something
wrong on it.
If any of you have a clue, let me know!
Cheers,
Pierre B.
Pierre Belanger wrote:
>
> Hello Shirish,
>
> Glad to hear it's working for you... so it must work for me! Yes
> the /export and /export/dfsroot is readable by everyone. Just
> can't figure out what's wrong, even after looking at the logs :(
>
> Here's some stuff I grabbed from the log file (log level = 10) and
> I've included my smb.conf after the log.
>
> [2002/05/06 06:37:25, 3] smbd/service.c:make_connection(491)
> Connect path is /export/dfsroot
> [2002/05/06 06:37:25, 5] smbd/uid.c:change_to_user(199)
> change_to_user uid=(0,30114) gid=(0,100)
> [2002/05/06 06:37:25, 3] smbd/vfs.c:vfs_ChDir(568)
> vfs_ChDir to /export/dfsroot
> [2002/05/06 06:37:25, 1] smbd/service.c:make_connection(651)
> wcanggn0164 (10.64.33.238) connect to service dfs as user pbelang1
> (uid=30114, gid=100) (pid 9653)
>
> [2002/05/06 06:37:25, 10] smbd/mangle.c:is_mangled(309)
> is_mangled: desktop.ini : False
> [2002/05/06 06:37:25, 10] smbd/mangle.c:is_mangled(309)
> is_mangled: desktop.ini : False
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1143)
> is_in_path: .
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1148)
> is_in_path: no name list.
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1143)
> is_in_path: ..
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1148)
> is_in_path: no name list.
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1143)
> is_in_path: ntdb4
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1148)
> is_in_path: no name list.
> [2002/05/06 06:37:25, 5] msdfs/msdfs.c:is_msdfs_link(188)
> is_msdfs_link: ./ntdb4 -> msdfs:cocoon\ntdb
> [2002/05/06 06:37:25, 5] smbd/trans2.c:get_lanman2_dir_entry(535)
> get_lanman2_dir_entry: Masquerading msdfs link ./ntdb4 as a directory
> [2002/05/06 06:37:25, 8] smbd/dosmode.c:dos_mode(123)
> dos_mode: ./ntdb4
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1143)
> is_in_path: ./ntdb4
> [2002/05/06 06:37:25, 8] lib/util.c:is_in_path(1148)
> is_in_path: no name list.
> [2002/05/06 06:37:25, 8] smbd/dosmode.c:dos_mode(167)
> dos_mode returning d
> [2002/05/06 06:37:25, 5] smbd/trans2.c:get_lanman2_dir_entry(568)
> get_lanman2_dir_entry found ./ntdb4 fname=ntdb4
> [2002/05/06 06:37:25, 5] smbd/mangle.c:name_map_mangle(994)
> name_map_mangle( ntdb4, need83 = False, cache83 = True, 11 )
> [2002/05/06 06:37:25, 5] smbd/mangle.c:name_map_mangle(1029)
> name_map_mangle() ==> [ntdb4]
> [2002/05/06 06:37:25, 5] smbd/mangle.c:is_8_3(341)
> Checking ntdb4 for 8.3
>
> [2002/05/06 06:37:28, 3] smbd/vfs.c:vfs_ChDir(568)
> vfs_ChDir to /export/dfsroot
>
> [2002/05/06 06:37:28, 8] lib/util.c:is_in_path(1143)
> is_in_path: ntdb4
> [2002/05/06 06:37:28, 8] lib/util.c:is_in_path(1148)
> is_in_path: no name list.
> [2002/05/06 06:37:28, 5] smbd/mangle.c:name_map_mangle(994)
> name_map_mangle( ntdb4, need83 = False, cache83 = True, 11 )
> [2002/05/06 06:37:28, 5] smbd/mangle.c:name_map_mangle(1029)
> name_map_mangle() ==> [ntdb4]
> [2002/05/06 06:37:28, 5] smbd/statcache.c:stat_cache_add(132)
> stat_cache_add: Added entry NTDB4 -> ntdb4
> [2002/05/06 06:37:28, 5] smbd/filename.c:unix_convert(413)
> conversion finished ntdb4 -> ntdb4
> [2002/05/06 06:37:28, 8] lib/util.c:is_in_path(1143)
> is_in_path: ntdb4
> [2002/05/06 06:37:28, 8] lib/util.c:is_in_path(1148)
> is_in_path: no name list.
> [2002/05/06 06:37:28, 3] lib/util.c:unix_clean_name(387)
> unix_clean_name [ntdb4]
> [2002/05/06 06:37:28, 3] smbd/trans2.c:call_trans2qfilepathinfo(1648)
> call_trans2qfilepathinfo: vfs_stat of ntdb4 failed (No such file or
> directory)
> [2002/05/06 06:37:28, 3] smbd/error.c:error_packet(91)
> error string = No such file or directory
>
> [2002/05/06 06:37:29, 3] smbd/vfs.c:vfs_ChDir(568)
> vfs_ChDir to /export/dfsroot
> [2002/05/06 06:37:29, 3] smbd/trans2.c:call_trans2findfirst(860)
> call_trans2findfirst: dirtype = 22, maxentries = 3,
> close_after_first=1, close_if_end = 0 requires_resume_key = 1 level =
> 260, max_data_bytes = 352
> [2002/05/06 06:37:29, 5] smbd/trans2.c:call_trans2findfirst(887)
> path=\ntdb4
> [2002/05/06 06:37:29, 5] smbd/filename.c:unix_convert(149)
> unix_convert called on file "\ntdb4"
> [2002/05/06 06:37:29, 3] lib/util.c:unix_clean_name(387)
> unix_clean_name [/ntdb4]
> [2002/05/06 06:37:29, 5] smbd/mangle.c:is_8_3(341)
> Checking ntdb4 for 8.3
> [2002/05/06 06:37:29, 5] smbd/filename.c:unix_convert(224)
> unix_convert begin: name = ntdb4, dirpath = , start = ntdb4
> [2002/05/06 06:37:29, 10] smbd/mangle.c:is_mangled(309)
> is_mangled: ntdb4 : False
> [2002/05/06 06:37:29, 10] smbd/mangle.c:is_mangled(309)
> is_mangled: ntdb4 : False
> [2002/05/06 06:37:29, 5] msdfs/msdfs.c:is_msdfs_link(188)
> is_msdfs_link: ./ntdb4 -> msdfs:cocoon\ntdb
> [2002/05/06 06:37:29, 5] smbd/trans2.c:get_lanman2_dir_entry(535)
> get_lanman2_dir_entry: Masquerading msdfs link ./ntdb4 as a directory
>
> [global]
> workgroup = OSS
> server string = OSS ALKONOST SAMBA
> security = user
> encrypt passwords = yes
> log level = 10
> log file = /usr/local/samba/var/log.%m
> max log size = 50
> character set = ISO8859-1
> host msdfs = yes
>
> [dfs]
> path = /export/dfsroot
> msdfs root = yes
>
> alkonost% ls -al /export/dfsroot/
> total 6
> drwxr-xr-x 2 root root 512 May 5 16:20 .
> drwxr-xr-x 4 root sys 512 May 5 14:45 ..
> lrwxrwxrwx 1 root other 17 May 5 15:38 ntdb4 ->
> msdfs:cocoon\ntdb
>
> Thank you,
> Pierre B.
>
> Shirish Kalele wrote:
> >
> > Hi Pierre,
> >
> > I just tried this out here and it works fine. Must be a problem with your
> > setup.
> >
> > Can you map the smbhost share directly without dfs? Are the dfs symlinks
> > readable by the user on the Unix machine?
> >
> > It shouldn't matter whether the server name in the dfs link is a netbios
> > or dns name. In the links you have, the last one (ntdb4) is the
> > recommended way.
> >
> > A glance through a level 10 samba log might give you some clues..
> >
> > Cheers,
> > Shirish
> >
> > -----Original Message----
> > Hi,
> >
> > I've been trying since the past hours to configure MSDFS using 2.2.4,
> > compiled with --with-msdfs under Solaris but I can't get it to work :(
> >
> > Here's what I've done, in the smb.conf file, I added the following:
> >
> > [global]
> > ...
> > host msdfs = yes
> > ...
> >
> > [dfs]
> > path = /export/dfsroot
> > msdfs root = yes
> >
> > In the /export/dfsroot I've created all of the following symlinks,
> > there's many cuz nothing was working so I've created all the one
> >
> > ntdb1 -> msdfs:smbhost.net.private.com\ntdb
> > ntdb2 -> msdfs:smbhost.net.private.com\\ntdb
> > ntdb3 -> msdfs:smbhost\\ntdb
> > ntdb4 -> msdfs:smbhost\ntdb
> >
> > I added "netbios name = smbhost" on the remote server.
> >
> > From my Windows NT4 SP6A client, when I browse the DFS share and
> > click on any of the "ntdb?" directory, it just cd into the directory
> > and nothing else happens. I don't see the files I should see... it
> > doesn't seem to "redirect" the connection on server "smbhost".
> >
> > Does the "smbhost" in the symlink need to be a netbios name or
> > can it be a fully qualified hostname, like smbhost.net.private.com ?
> >
> > Does the symlink final "name" need to be "msdfs:smbhost\\ntdb" or
> > "msdfs:smbhost\ntdb" ?
> >
> > I've rebooted my Windows NT4 SP6A client, I've restarted Samba and
> > the DFS share doesn't seem to work. Any clue?
> >
> > Thank you,
> > Pierre B.
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list