I can't mount AD network home folders with Lion machines

catfeetstop
Contributor II

Hello everyone,

On all of our Lion machines we're unable to mount an AD users network home folder. The network homes will not mount with the AD plugin or manually through the Finder. We could always mount network homes through Finder in Snow Leopard. Personally, I think it's a permissions issue on the Windows server but I'm not exactly sure how things should be set up on the Windows side of things.

Have any of you had this problem?

Jamie Bell
Apple Technology Specialist
The Westminster Schools
Ph: 404-609-6345

1 ACCEPTED SOLUTION

catfeetstop
Contributor II

I made an AppleScript that mounts the drives using the mount_smbfs command, works great!

View solution in original post

13 REPLIES 13

Not applicable

I think that you should read this article:
http://support.apple.com/kb/HT4829

That usually seems to be the problem.

//P

20 dec 2011 kl. 16:31 skrev Jamie Bell:

catfeetstop
Contributor II

This sounds very promising. I'll get my Network Manager to help me look at the permissions on the server.

Thanks for the help, Patrik!

Jamie Bell
Apple Technology Specialist
The Westminster Schools
Ph: 404-609-6345

tkimpton
Valued Contributor II

yep thats the problem i have and the kb is correct. Apple changed things in 10.7

I have a Windows NFS share where users home directories are. The machines are bound to AD. The users home share mounts on the desktop. 10.6 is fine but not 10.7.

I cannot change share permission otherwise every one will be able to see and have access to everyone elses home share.

"You must have permission to read Sharepoint, Folder1, and all other directories in the path to Folder2."

For me im screwed at the moment because we use ADmitMac by Thursby Software Systems and even trying the command line as per the kb doesn't work.

Thursby said there is nothing they can do about it :(

catfeetstop
Contributor II

I made an AppleScript that mounts the drives using the mount_smbfs command, works great!

bentoms
Release Candidate Programs Tester

AppleScript here too: http://macmule.com/2011/09/08/how-to-map-drives-printers-based-on-ad-group-membership-on-osx/

wangl2
Contributor

Hey catfeetstop, I work at school too and all our students use Windows laptops in Active Directory environment. They also use their AD accounts to log on iMacs in the Music Lab. All the iMacs have been joined the AD. We have prepared a different SMB share for students who log on to MAC. And this share is different from other network folder they get in Windows. We want to use this new share only for MAC (it is a smb share reside in Windows platform).
My question is: would you be able to share your script and direct me what's the best practice to mount these Windows Share for AD users logging into MAC. PS: I am not a great script guy that's why I am having trouble reading the link bentoms provided.
Thanks a lot.

catfeetstop
Contributor II

Hey wangl2, the link bentoms provided is what I originally used to build my script. Are you wanting to mount a user's network home folder upon login or just a specific SMB share? If you just want to mount a specific SMB share upon login it should be super simple. The following could be your AppleScript:

mount volume "smb://server/share"

Save the script as an application and save it to your applications folder. Then, create a LaunchAgent that launches that application at login.

The article bentoms linked to is really really helpful and it breaks down each part of the script very clearly. Keep trying to decipher that script, it'll help a lot!

- Jamie

bentoms
Release Candidate Programs Tester

Thanks Jamie, it's my site so glad it helped. :))

Leo, what issues are you finding with the blogs steps??

wangl2
Contributor

@Cat,
Thanks for that. So is this launch agent thing done on the local computer? If it is, I might need to prepare it on the reference computer and then package it for distribution.
@Bentom,
I am sure your site is very helpful. I just haven't read it through yet. It looks quite sophisticated for me. I will be studying that and ask you questions.
Btw, do you guys know how to see your post or response? When I log in JAMF nation, I gets no notification. So how do I track what I have posted and responsed to?
Thanks guys.

wangl2
Contributor

@cat
I have done the script and copied to Application folder. Then I am lost about how do you go with this launch agent.
And also your script solution leads me two questions:
1. When the scipt mounts the share, can you place a icon on the desktop?
2. When AD users log in, I would like them to get a mounted share all the way to their own username. So intead of a /server/share_folder/, they will get a /server/share_folder/username. I guess this might need some varible in place. Any advice?
Thanks

tlarkin
Honored Contributor

Here is an apple script I used to mount a specific share and then launch an application after said share was mounted. Feel free to use it

tell application "Finder"

    mount volume "afp://user:password@fs101.kckps.k12.ks.us/FS101.VOL2"

    delay 10
    repeat 25 times
        if (exists "FS101.VOL2") then
            do shell script "open -a TestTaker"
            exit repeat

        end if
        delay 2
    end repeat
end tell

wangl2
Contributor

Hi Tlarkin,
Thanks for sharing. Do you apply the script via JSS, trigged by user login and set the frequency as ongoing?
Thanks.

kiruarch
New Contributor

Hi Catfeetstop

i need your help

we are trying to mount a user's network home folder upon login, is there any script for it.