I'm new to Jamf Pro and MacOS, so bare with me. I'm trying to find an alternative method to mapping two network drives for new computer deployments. Each user has an H drive for their local files, and an S drive for department files. These were originally mapped as part of our enterprise connect package/scripts. They stopped working with Big Sur.
I've had some luck with the script below. However it prompts for credentials and places both shares under Locations on the Finder sidebar. Ideally I'd like to avoid the login prompt and have the mapped drives display as desktop shortcuts.
# Mount the network home
mount_script=`/usr/bin/osascript > /dev/null << EOT
# tell application "Finder"
mount volume "smb://servername/shares/"
mount volume "smb://servername/home/"
# end tell
Did you switch over to the Kerberos SSO? The shares should mount automatically if you have a Kerberos ticket.
Also, if you want, you can have the script run automatically once KSSO logs in successfully. Take a look at this document from HCS:
It explains how to use distributed notifications to launch scripts on certain events.
We are planning to move to Single Sign on (SSO) very soon. I'm looking for a script or method to mount network drives. Previously our script called dscl -u username -P password '/Active Directory/Domain/All Domains' ...... But with the systems unbound this will not be a possibility. Any solutions out there?
Hello. Yes I have seen the examples of how SSO extension can run scripts upon several triggers. I'm looking for a specific script to mount network shares based upon the groups a user belongs to. Since the systems are no longer bound, they cannot pull information from dscl as they had in the past.