Access DFS Shares from Mac OS XPosted on July 14th, 2011 11 comments
The storage admins where I work have gone DFS mad. But if you’re a Mac user, that would just make you plain old mad. That’s because as great as DFS is for Windows users on an Active Directory domain, Mac OS X 10.6 Snow Leopard doesn’t know what to do with DFS paths.
The rumor is that Lion 10.7, due any day now, will finally support DFS, but that doesn’t help me now. So I created a command line tool to help deal with Active Directory DFS shares from a Mac. No need for GroupLogic’s expensive ExtremeZ-IP DFSConnect!
Here is some output to give you a taste:~ $ dfstool -h
(c) 2011 Jorge Escala <http://jescala.com>
usage: dfstool [option] [<dfspath>]
-d <dc> use <dc> domain controller to enumerate DFS shares
-h display this usage screen
-l display the complete dfs list
-m <mntpnt> mount the dfs path at <mntpnt>
-M mount the dfs path in ~/Network/
-v display version
~ $ dfstool -M '\\ad\dfs\shared\files'
~ $ df -h | tail -1
//server/shared/files 1.3Ti 827Gi 551Gi 61% /Users/jescala/Network/shared/files
This code is available under the BSD license and can be downloaded here:
UPDATE: I’ve received some feedback about the -d switch not working and the need for a -u
switch. I developed and tested dfstool almost exclusively on AD joined Macs since that is what we have in our environment. I’m going to setup a test environment next week and work out all the kinks for non-AD-joined Macs. In the meantime, modify the adserver variable in line 40 of the script to point to your domain controller and post your feedback here.
UPDATE 2: I posted version 1.1 of dfstool. Visit this post for more info and discussion.
What if you’re using standalone (non-domain based) namespace servers? anyway to get this tool to work?
Thursby software’s DAVE and ADmitMac have included DFS support for Macs for the past decade. No changes in data center infrastructure are required to deploy it.
ZIP is server-based and is usually seen in organizations where legacy AFP is the main driver rather than native integration with Windows Servers, NAS and Samba under DFS and SMB/CIFS.
Would recommend trying evaluation copies rather than simply believing marketing or hype from any vendor, especially Apple which is 99.999% consumer rather than enterprise focused.
Charts with check boxes on web pages are easy to fill but scalable, performing, well-supported solutions are somewhat harder to deliver and can take years to get right.
Apple’s Enterprise OS X support runs $50,000/year, which isn’t that affordable especially on machines at $1,500 but everyone has their own view on what’s affordable or not.
The most expensive solutions are ones that don’t work, cause lots of down time and have IT folks spending hours on forums tracking down this script and work-around or that, with costs moving from the software bucket to staff bucket.
After reading your posts, I’m not sure if this is the same thing and if not you seem to know more about the MAC O.S. than most forums I have read. However, I will still ask because I have yet been able to find anything else to help with this subject. In our office we support both MAC and Windows. We have a Windows Small Business Server 2003 that everyone on the network has access to its shared drives. Here is my situation, We just purchased a MacBook Pro with the Lion O.S. The employee using this computer has ran into the following problem: When she saves a file on her desktop and then tries to save the file to the Graphics drive (G:)on the server it saves fine. If she tries to re-open that file from the server it gives her an error message that the file is locked or she does not have permission to view this file. If someone else tries to open this file from their computer they get the same message. The file on the server is then completely locked and cannot be moved, deleted, or opened. Any idea as to why this is happening and is it because of the new Lion O.S.? Her computer has been joined to the Active Directory for our server and everything was setup identical to the other MACs in the office. (Those MACs are running Snow Leopard and Leopard.)Any help on this issue would greatly be appreciated.
Like a small businessperson, you don’t have any greater leverage as opposed to truth.
A group or even an artist shouldn’t get his money until his boss gets his.