MSDfs and substitutions/default service..

Kevin Wheatley hxpro at cinesite.co.uk
Thu May 9 07:00:16 GMT 2002


Well I got my DFS working fine, but now I'm trying something more
complicated...

[global]
        default service = hidden_vdisk

[dfs]
        path = /dfsroot
        vfs object = /usr/samba/lib/VFS/vdisk.so
        msdfs root = yes
        writeable = no
        guest ok = no

[hidden_vdisk]
        path = /dfsroot/%S
        vfs object = /usr/samba/lib/VFS/vdisk.so
        msdfs root = yes
        writeable = no
        guest ok = no
        browseable = no

If I browse the '\\server\dfs' share I see directories under them, I
can then browse down and find a link that should be a DFS redirect and
it is, everything is OK.

If I now try browse '\\server\FOO' where 'FOO' is one of the
directories under /dfsroot, the macro expansion happens and I can
browse down fine, but the same DFS link is no longer a DFS link...
looking at the log it looks like sometimes the %S is remapped and
sometimes not so I get an error (see below)

Anybody suggest where to start?? If this works I'll have an almost
complete solution for emulating autofs style indirect maps.

Also is it possible for a share to be redirected ? e.g.

\\server1\share1 tells you to go to \\server2\share1
\\server1\share2 tells you to go to \\server3\othershare

from a quick look at what MS has to say about DFS I don't think so,
but then Samba can do other DFS things that they say they can't.

Thanks

Kevin


(NB I've replaced the real paths due to client request ...)

[2002/05/09 14:25:39, 5] smbd/uid.c:(199)
  change_to_user uid=(0,0) gid=(0,0)
[2002/05/09 14:25:39, 10] smbd/nttrans.c:(398)
  map_create_disposition: Mapped create_disposition 0x1 to 0x1
[2002/05/09 14:25:39, 10] smbd/nttrans.c:(259)
  get_filename: data_offset = 87, data_len = 43, fname_len = 43
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(46)
  temp in parse_dfs_path: .vdisktest\FOO\directory\shot1. after
trimming \'s
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(55)
  hostname: vdisktest
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(67)
  servicename: FOO
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(77)
  rest of the path: directory/shot1
[2002/05/09 14:25:39, 10] vdisk.c:(165)
  vdisk_readlink: link /dfsroot/FOO/directory/shot1 path
/hosts/anneka/images/FOO/directory/shot1 ->
msdfs:machine1\images\FOO\directory\shot1
[2002/05/09 14:25:39, 5] msdfs/msdfs.c:(189)
  is_msdfs_link: /dfsroot/FOO/directory/shot1 ->
msdfs:machine1\images\FOO\directory\shot1
[2002/05/09 14:25:39, 6] msdfs/msdfs.c:(244)
  resolve_dfs_path: \vdisktest\FOO\directory\shot1 resolves to a valid
Dfs link.
[2002/05/09 14:25:39, 3] msdfs/msdfs.c:(313)
  dfs_redirect: Redirecting \vdisktest\FOO\Directory\shot1
[2002/05/09 14:25:39, 3] smbd/error.c:(106)
  error packet at msdfs/msdfs.c(662) cmd=162 (SMBntcreateX)
NT_STATUS_PATH_NOT_COVERED



else where I get the following:

[2002/05/09 14:25:39, 10] smbd/trans2.c:(2997)
  call_trans2getdfsreferral
[2002/05/09 14:25:39, 10] smbd/trans2.c:(3011)
  UNICODE referral for \vdisktest\FOO\directory\shot1
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(46)
  temp in parse_dfs_path: .vdisktest\FOO\directory\shot1. after
trimming \'s
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(55)
  hostname: vdisktest
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(67)
  servicename: FOO
[2002/05/09 14:25:39, 10] msdfs/msdfs.c:(77)
  rest of the path: directory/shot1
[2002/05/09 14:25:39, 3] smbd/vfs.c:(137)
  Initialising custom vfs hooks from /usr/samba/lib/VFS/vdisk.so
[2002/05/09 14:25:39, 5] msdfs/msdfs.c:(175)
  is_msdfs_link: /images/dfsroot/%S/directory/shot1 does not exist.
[2002/05/09 14:25:39, 5] msdfs/msdfs.c:(175)
  is_msdfs_link: /images/dfsroot/%S/directory does not exist.
[2002/05/09 14:25:39, 3] msdfs/msdfs.c:(387)
  get_referred_path: No valid referrals for path
\vdisktest\FOO\directory\shot1
[2002/05/09 14:25:39, 3] smbd/error.c:(91)
  error string = No such file or directory
[2002/05/09 14:25:39, 3] smbd/error.c:(106)
  error packet at smbd/trans2.c(3016) cmd=50 (SMBtrans2)
NT_STATUS_NO_SUCH_FILE

-- 
| Kevin Wheatley              | These are the opinions of nobody   |
| Special Services (Projects) | and are not shared by my employers |
| Cinesite Digital Studios    |                                    |




More information about the samba-technical mailing list