[Samba] MSDFS on [homes] share for two samba servers
David Roid
dataroid at gmail.com
Tue Jan 17 01:08:07 MST 2012
One question: amongst all those "other servers", how do we find which
server is the preferred one (by locality), in a programmatic way?
Cheers
-David
2012/1/17 Daniel Müller <mueller at tropenklinik.de>
> 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:
> [global]
>
> host msdfs=yes
>
> [homes]
> Msfds root=yes
> Msdfs proxy= \serveronwhichyourhomesharesare\homes
>
> [docs]
>
> Msdfs root=yes
> Msdfs proxy= \serveronwhichyourdocsare\docs
>
> The shares on the servers to which the users are redirected are quiet
> normal
> shares
> Ex:
> [homes]
>
> 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.
>
> JAB.
>
> --
> 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
>
> --
> 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