Currently Being ModeratedOct 22, 2011 4:52 PM (in response to andyfromsaint joseph)
You should be able to do this using AutoFS. Unfortunately, my Active Directory machine is on Snow Leopard and is unlikely to be upgraded. There is no way for me to test any 10.7.2 solution with Active Directory. I use AutoFS with MacFUSE on 10.7.2 to mount some web sites via sshfs. In theory, smb should be easier because MacFUSE is really flaky. I know there is a section in that AufoFS document that shows how to define automount points dynamically. You should be able to combine that with dscl.
Currently Being ModeratedOct 22, 2011 4:56 PM (in response to etresoft)
I appreciate the reply.
I will look into AutoFS Everything worked perfectly in snow leo but I am testing the rollout of a 1 to 1 machine with a base os of lion. I'll look into it thanks again!
Currently Being ModeratedOct 23, 2011 6:11 AM (in response to andyfromsaint joseph)
How were you doing it in Snow Leopard? If all of that was set up by the book, it should still work. When Apple switched from the GPL Samba to their own software, anything that isn't a textbook installation could have problems. You might want to ask in the Windows Compatibility forum and carefully review your log files.
Currently Being ModeratedOct 24, 2011 12:10 PM (in response to andyfromsaint joseph)
Isn't their home folder location set in their user account setting in ADUC, I think, under the Profile tab? So on their Mac, wouldn't you just open up Directory Utility, click on Services, then click on Active Directory and check the box that says "Use UNC path from Active Directory to derive network home location"? And you just make sure that protocal to be used is SMB?
Currently Being ModeratedOct 24, 2011 12:17 PM (in response to andyfromsaint joseph)
Is this just like, an H:\ drive where they can store personal files on the server? You could write a script that will auto connect to that share sick it in log in items. They'd have to log into the server their H is located on, but they could always check the box to remember that info in their keychain. Only ***** with that is that when their AD password is reset on the server end the Keychain needs to be reset. If they change their AD password through System Preferences, then of course, the keychain gets updated.
Currently Being ModeratedOct 29, 2011 10:41 AM (in response to McToast)
Apple Enterprise support suggested that we uncheck this. Indeed this is how we had it setup using SnowLeo and everything worked perfectly! I am getting close to a script that I can place in the UserTemplates folder LoginItems and have their folder automount.
Currently Being ModeratedOct 29, 2011 10:47 AM (in response to McToast)
The issue is with our young students, as much as I can I would like to eliminate any extra login duties they may need to preform. The teachers would flip and our help desk would inundated with the "I cant get Timmy's password to work" calls. But your idea is the direction im heading. Another issue being the students H:/ are on different shares than say the teachers so my script needs to be smart enough to know by a users first and last name if they are a student or a staff member and reference the correct path to their H:/. Thanks again to everyone who is helping me with this! This is what these discussions are all about, thanks guys.
Currently Being ModeratedNov 29, 2011 8:15 PM (in response to andyfromsaint joseph)
I have the same problem. I have a school full of Leopard and Snow Leopard machines on a Windows 2008 R2 network, and their network folders mount on the dock just fine.
I have one Lion machine (10.7.2), and it simply will not mount the user's network home folder on the dock. Just get a question mark.
Has anyone figured out how to make this work?
Currently Being ModeratedDec 14, 2011 9:04 AM (in response to glenj1978)
tell application "System Events"
tell current user
set fn to full name
mount volume "smb://stafffiles.domain/homes/High School/" & fn
tell application "Finder" to open folder fn of folder "High School" of disk "Homes"
you can execute this as a shell script as a LoginHook so in terminal type
sudo defaults write com.apple.loginwindow LoginHook /path/to/file.sh
Currently Being ModeratedDec 14, 2011 9:56 AM (in response to AndyBeaver)
Ok, I'm not the brightest bulb when it comes to scripting, so humor me for a minute
I work in a school, and the student folders are organized by year of graduation. So my hierarchy goes like this:
Is there a variable I can use that will store the entire UNC path from Active Directory?
Currently Being ModeratedJan 16, 2012 9:17 AM (in response to andyfromsaint joseph)
In Directory Utility -> Active Directory -> Advanced Options, do you have these options checked:
Force local home directory on startup disk - CHECK
Use UNC path from Active Directory to derive network home location - CHECK
And in Finder preferences check "Show connected servers". Using Samba home directories, we get the root of the share mounted on the desktop. Using DFS we see the login user's home directory.
Like glenj1978we have a question mark in the dock - related to network home folder depth on the share. The dock item seems to be fine when homes are directly on the share, not in a subfolder: