Is there a way for Ubuntu/Samba to access a DFS path on our Windows file server?
I'm primarily a Windows guy and my Ubuntu colleagues have to access the file server using regular \\server\share paths, rather than \\domain\dfsnamespace\target.
Is there a way for Ubuntu/Samba to access a DFS path on our Windows file server?
I'm primarily a Windows guy and my Ubuntu colleagues have to access the file server using regular \\server\share paths, rather than \\domain\dfsnamespace\target.
I believe I have solved this problem!!
I spent HOURS working on this before I solved, and I've documented my solution here:
http://mattslay.com/connecting-ubuntu-to-windows-shares-and-dfs-trees/
Are your Ubuntu colleagues using the CIFS client or are they using the SAMBA smbclient tool? http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf indicates that the smbclient tool can access DFS paths though the CIFS client cannot.
I have been able to get this to work on Ubuntu 18.04. You need to install both cifs-utils and keyutils packages. Two configuration changes also needed to be made in /etc/request-key.conf
create cifs.spnego * * /usr/sbin/cifs.upcall -t %k
#create dns_resolver * * /usr/sbin/cifs.upcall %k
create dns_resolver * * /sbin/key.dns_resolver %k
Change the deprecated -c
parameter to -t
for the cifs.spnego type, and (using the cifs.upcall man page recommendations) change the dns_resolver type to use /sbin/key.dns_resolver
We're also using realmd/sssd for configuring AD integration, which sets up Kerberos configuration for ssh and other tools.