Could we help you? Please click the banners. We are young and desperately need the money
In order to being able to mount a DFS share correctly you need to install the following tools on your Debian host:
aptitude install smbfs cifs-utils keyutils
After the installation of the tools you will be able to mount the share using on of these methods:
mount.cifs //myDomain.com/dfs_root/Sharename /mnt/cifs_mountpoint -o username=UserName,password=Passw0rd
Edit the file /etc/auto.master:
nano /etc/auto.master
Enter a line like this (timeout means: unmount after xx seconds):
/mnt/MyShare /etc/auto.smb --timeout 600
Edit the file /etc/auto.smb:
nano /etc/auto.smb
Enter the command to mount your directory (in the example we directly connect the DFS share on the domain controller):
MySMBShareName -fstype=smbfs,rw,soft,username=MyUsername,password=MyPassword ://servername/dfs/folder/subfolder
Save the file and change its permissions (Attention! The file MAY NOT be executable. If it is the AUTOFS daemon won't parse it):
chmod a-x /etc/auto.smb chmod 600 /etc/auto.smb
Restart the AUTOFS daemon
/etc/init.d/autofs restart
Check if you can access your share:
cd /mnt/MyShare/MySMBShareName
Done.