Network Mount
Network Mount
- Subject: Network Mount
- From: William J Sisti <email@hidden>
- Date: Tue, 09 Sep 2008 12:32:59 -0400
- Thread-topic: Network Mount
We are having some issues with AD logins on our new macbooks and until we
come up with a real fix I want to put a local account on the machines that
will moun the users home folder. Ideally this is what I want
1. Prompt for username
2. Prompt for password
3. Mount network drive based on account name (query dscl?)
4. open finder window
The sharepoint is names HomeDirs. In the SharePoint there is a Faculty and
Student folder. Within Student there are folders based on grade years.
HomeDirs/Students/GY2016
HomeDirs/Students/GY2015
HomeDirs/Faculty
Since student logins are their student numbers I am currently using some
simple logic to determine where the home directory is located, but can I
just use dscl to get the path from Active Directory?
Here is the script I have put together from around the web.
to getusername()
display dialog "Enter your username:" default answer ""
set username to text returned of result
return {username}
end getusername
to getuserpwd()
display dialog "Enter your password:" default answer "" with hidden
answer
set userpwd to text returned of result
return {userpwd}
end getuserpwd
set username to getusername()
set userpass to getuserpwd()
tell application "Finder"
if (username > 161000 and username < 169999) then
open location "afp://" & username & ":" & userpass &
"@wwrsdod2.wwrsd.org/HomeDirs/GY2016/"
else
open location "afp://" & username & ":" & userpass &
"@wwrsdod2.wwrsd.org/HomeDirs/GY2015/"
end if
end tell
Thanks all
-William J Sisti
Wetwood Regional Schools
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden