msdfs referrals at share-level
kalele at veritas.com
Mon Oct 14 20:35:59 GMT 2002
This is cool. Which Windows clients have you tested with?
As for the patch, it might be better if you coded this such that a
self-referral either pointed to itself, or to the proxied share. Having
something like 'msdfs proxy = server\share' in smb.conf, and sending that
whenever a self-referral was to be sent would be better than the hack you
have where you manipulate the client's requested path to become the msdfs
link to the proxy. imho, anyway. This might also make it easier to code the
NETDFS interface to this proxy stuff.
----- Original Message -----
From: "Guenther Deschner" <gd at suse.de>
To: "Shirish Kalele" <kalele at veritas.com>
Cc: <samba-technical at lists.samba.org>; "Thomas Wiebach" <wiebach at suse.de>
Sent: Monday, October 14, 2002 6:36 AM
Subject: Re: msdfs referrals at share-level
we made some more experiments with the dfs-code and now have a running
solution for our smb-proxy, without breaking msdfs (well, i didn't had a
look on the dfs_rpc-pipe for now...)
you can now have a samba-share behave like an mdfs-symlink.
if you set a share to "msdfs proxy = yes" and declare the link in its
path to "msdfs link name = linkname" the clients will reveive correct
referrals already when they access the share :)
since we are planning to use this patch in production, it would be very
nice if you could comment on this.
add to smb.conf:
host msdfs = yes
path = /export/dfs-fake
msdfs root = yes
msdfs proxy = yes
msdfs link name = "linkname"
create a link:
ln -s msdfs:unimak\\storage /export/dfs-fake/linkname
thanks a lot,
On Thu, Sep 05, 2002 at 09:50:51AM -0700, Shirish Kalele wrote:
> Clients do request dfs referrals for every share they connect to. In a dfs
> reply for a share, you could try and send a different sharename and see
> happens. I don't know if clients will be able to handle this. Look for
> self_referral in the setup_dfs_referral() code to find out where to start
> making changes.
> Let me know how the clients take it..
> ----- Original Message -----
> From: "Guenther Deschner" <guenther.deschner at suse.de>
> To: <samba-technical at lists.samba.org>
> Sent: Wednesday, September 04, 2002 2:48 PM
> Subject: msdfs referrals at share-level
> hello everybody,
> as far as i have looked into msdfs.c it seems to be impossible to send
> a client a dfs-referral at the share level (\\fileserver\msdfs-link).
> maybe there is another way to "proxy" a request to \\samba\thisshare to
> \\anothersamba\thatshare ?
> i currently want to migrate a couple of nt-servers transparently for
> clients. the basic idea is to setup one samba-server that offers faked
> file-service via netbios-aliases and dfs-redirects to the real
> samba-fileserver. unfortunatly touching the clients is a no-go.
> old setup with *nt*:
> client -> //fileserver/share1
> planned setup with *samba*:
> client -> //fileserver/share1 where share1 -> msdfs:samba-file\whatever
> any help is much appreciated.
> Guenther Deschner guenther.deschner at suse.de
> SuSE Linux AG GnuPG: 8EE11688
> Berliner Str. 27 phone: +49 (0) 30 / 430944778
> D-13507 Berlin fax: +49 (0) 30 / 43732804
Guenther Deschner guenther.deschner at suse.de
SuSE Linux AG GnuPG: 8EE11688
Berliner Str. 27 phone: +49 (0) 30 / 430944778
D-13507 Berlin fax: +49 (0) 30 / 43732804
More information about the samba-technical