What do you mean with "preferred one". If you live with samba you will have one PDC I think and all other servers are part of your domain. So the users and groups are all the same in your domain and servers. So if you logon to your PDC you will have your [homes] ex.: [homes] Msfds root=yes Msdfs proxy= \serveronwhichyourhomesharesare\homes
And a netlogon script under your [netlogon] Will do the rest. 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: muel...@tropenklinik.de Internet: www.tropenklinik.de Von: David Roid [mailto:datar...@gmail.com] Gesendet: Dienstag, 17. Januar 2012 09:08 An: muel...@tropenklinik.de Cc: Jonathan Buzzard; samba@lists.samba.org Betreff: Re: [Samba] MSDFS on [homes] share for two samba servers 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 <muel...@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: muel...@tropenklinik.de Internet: www.tropenklinik.de ----------------------------------------------- -----Ursprüngliche Nachricht----- Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im Auftrag von Jonathan Buzzard Gesendet: Montag, 16. Januar 2012 15:50 An: samba@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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba