[Samba] domain-based DFS ?

Davor Vusir davortvusir at gmail.com
Mon Jun 30 00:23:48 MDT 2014


2014-06-29 23:19 GMT+02:00 Klaus Hartnegg <hartnegg at gmx.de>:
> On 28.06.2014 09:38, Davor Vusir wrote:
>>
>> Domainbased DFS works.
>
>
> How? I can only find descriptions for stand-alone DFS, no mention of
> domainbased DFS in Samba anywhere. It works with SYSVOL, but it seems to be
> impossible to configure own DFS names like this.
>


AD DC: ostraaros.vusir.local
File server: vastraaros.vusir.local

To the [global] section on the AD DC I added
host msdfs = yes <- the trick?

Created a share definition block for the DFS:
[files]
        path = /data/files
        comment = "Här finns allt!" <- 'Everything is here!' in Swedish.
        read only = No
        msdfs root = yes

Created links according to
https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/msdfs.html:
admind at ostraaros:~$ ls -l /data/files/
total 0
lrwxrwxrwx 1 root root 39 Jun 29 13:32 demoshare ->
msdfs:vastraaros.vusir.local\demoshare
lrwxrwxrwx 1 root root 37 Jun 27 19:26 familjen ->
msdfs:ostraaros.vusir.local\familjen
lrwxrwxrwx 1 root root 33 Jun 27 19:26 home -> msdfs:ostraaros.vusir.local\home
admind at ostraaros:~$

admind at ostraaros:~$ smbclient //vusir.local/files -U davor -W VUSIR
Enter davor's password:
Domain=[VUSIR] OS=[Unix] Server=[Samba 4.1.9]
smb: \> cd home/davor\
smb: \home\davor\> ls
  .                                   D        0  Wed Apr 23 07:57:52 2014
  ..                                  D        0  Thu Jun 26 22:29:37 2014
  _aaa                                D        0  Sun Oct 20 10:16:27 2013
  Links                              DR        0  Fri Jun 27 06:41:23 2014
  AppData                             D        0  Wed Apr 23 16:15:30 2014
  .bash_history                       H       50  Sun Mar 30 21:45:16 2014
  .viminfo                            H     1745  Mon Apr  7 05:58:08 2014
  Documents                          DR        0  Fri Jun 27 19:43:44 2014
  Contacts                           DR        0  Tue May 27 05:31:16 2014
  Desktop                            DR        0  Tue Jun 10 21:30:56 2014
  Searches                           DR        0  Tue May 27 05:31:18 2014
  Favorites                          DR        0  Tue May 27 05:40:58 2014
                50364 blocks of size 4194304. 27720 blocks available
smb: \home\davor\> pwd
Current directory is \\vusir.local\files\home\davor\
smb: \home\davor\>

admind at ostraaros:~$ smbclient //vusir.local/files -U administrator -W VUSIR
Enter administrator's password:
Domain=[VUSIR] OS=[Unix] Server=[Samba 4.1.9]
smb: \> ls
  .                                   D        0  Sun Jun 29 13:32:51 2014
  ..                                  D        0  Fri Jun 27 05:51:19 2014
  home                                D        0  Fri Jun 27 19:26:33 2014
  familjen                            D        0  Fri Jun 27 19:26:07 2014
  demoshare                           D        0  Sun Jun 29 13:32:51 2014
                56212 blocks of size 1048576. 50229 blocks available
smb: \> cd demoshare\
smb: \demoshare\> ls
  .                                   D        0  Sun Jun 29 13:33:24 2014
  ..                                  D        0  Sun Jun 29 11:41:26 2014
  Testa1                              D        0  Sun Jun 29 13:33:22 2014
                58665 blocks of size 16777216. 55533 blocks available
smb: \demoshare\> pwd
Current directory is \\vusir.local\files\demoshare\
smb: \demoshare\>

Regards
Davor

> --
> 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