[Samba] MSDFS on [homes] share for two samba servers

Daniel Müller mueller at tropenklinik.de
Tue Jan 17 00:27:58 MST 2012

THis is what is working:

Msdfs root and host msdfs and msdfs proxy are the things you need.
You have a server let's call A.
A is your redirection server to any share on other servers.

You need in you smb.conf ex:

host msdfs=yes

Msfds root=yes
Msdfs proxy= \serveronwhichyourhomesharesare\homes


Msdfs root=yes
Msdfs proxy= \serveronwhichyourdocsare\docs

The shares on the servers to which the users are redirected are quiet normal

comment=homeshares %U
        path= /yourpath/tohomeshares/%U
        valid users=%S
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im
Auftrag von Jonathan Buzzard
Gesendet: Montag, 16. Januar 2012 15:50
An: samba at lists.samba.org
Betreff: Re: [Samba] MSDFS on [homes] share for two samba servers

On Sun, 2012-01-15 at 12:35 +0100, Michal Bruncko wrote:
> Hello Jonathan,
> thank you for answer. You have right, that is good idea with making 
> standalone (virtual) redirection server for all people. But here is 
> another question: it is possible creates this redirection shares on that 
> virtual server with the most simple path like \\virtual.filesrv\user ? 
> Or i need to using something like this: \\virtual.filesrv\msdfs_share\user

It is a while since I last did this and don't have a working test rig as
at my current job we have this horrid automounter/NFS combo that I am
working to get rid of. Therefore you would have to test this out for
yourself, though in the past when I did this it did not matter as the
home directory path was recovered from AD as part of the login process.

I would try start with a "template homedir = /homes/%u" on your virtual
server, create all the necessary symlinks in the /homes directory for
all your users so they point to the correct physical server and then add
to the [homes] share on your virtual server an "msdfs root = yes" option
and see if it works. I suspect it won't however.

The other option is to create explicit shares for each users home
directory and add an msdfs proxy option to each share definition. Rather
less manageable though.

Option one would be good for a CTBD setup as you can publish a "\
\homes.mycorp.com\homes" share for your users to use, and then under the
hood load balance across your servers using a "exec
= /usr/local/sbin/mklnk.pl %u" with an appropriate script that creates
as required an MSDFS style link when you first connect randomly to one
of your CTDB IP addresses.


Jonathan A. Buzzard                 Email: jonathan (at) buzzard.me.uk
Fife, United Kingdom.

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list