We've run into an issue with local homes for our Student lab users which affects the dock shortcut to their network home and mobile account sync. We are using JAMF Casper to deploy and manage OS X 10.7 Lion, Active Directory for authentication and Samba shares.
We've got AD configured with:
Force local home directory on startup disk - CHECK
Use UNC path from Active Directory to derive network home location - CHECK
So the problem is that although we have managed preferences configured via Casper, I'd also like to be able to sync preferences through mobile accounts. Ideally we would sync preferences and bookmarks at login and logout. When I configure AD with "Create mobile account at login", the sync has been failing with a message similar to "Unable to sync home directory at (null)" .
Putting that to one side for a moment, there is another difficulty. Yes, network users can login successfully. And the root of the share containing their home directory is mounted on the user's Desktop. However, the dock item which links to their home directory is broken and can't be removed.
The broken dock item is caused by folder depth on the Samba share. For example, this folder hierarchy has a broken link in the dock:
\\servernamesharesubfolder_herehome_directory
But this works fine:
\\servernamesharehome_directory
The network home directory dock item is not listed in the user's dock plist – it's there because it's an active (broken) mount. Our home directories all have numeric names like 00012345. The share and its subfolder are all lowercase. We have tested that there is no issue with permissions - we gave a test user "Full Control" over the entire path from the root of the mounted share down to home directory, and still there was a question mark in the dock. Ultimately we will be using DFS, but for testing we have switched to a plain hostname. We have also tried reducing the length of the home path in Active Directory from this:
\\servernamesharesubfolder_herehome_directory
to this (same folder depth, but shorter names):
\\servernameshare11
We've posted here: http://www.macwindows.com/forum/viewtopic.php?f=2&t=20 and I'm wondering whether the mobile account sync failure and the broken dock item are related – I will test.
By the way, the short \\servernamesharehome_directory configuration also works fine for our clients on an independent server with a different Samba mount and AD service. Can anyone tell me whether folder depth causes a known error with SMB mounted home directories on Mac OS X 10.7.2 and is there a client side workaround?
Looks like there shouldn't be a problem, right?
http://support.apple.com/kb/HT4829
Regards
James