Automatic Drive mapping issue

ryanvega
New Contributor

Alright folks we have a issue we are stumped on here.

We have used the script located here https://jamfnation.jamfsoftware.com/viewProductFile.html?fid=476 to auto map department drives and a users network drive on login. We did make 1 modification to the script that is just a sleep command for 1 minute to make sure network is fully connected at login

Using casper we have the script set to run at login and set to ongoing. Also set the script so its available in software center.

We are using el capitan, on the most current release of macbook pros and imac hardware

When we login to systems (macbook or imac) with a rj45 connection, the scripts work flawless each time, everytime.

When we login on a wireless connection the scripts never work. The do not work even if I envoke them from the self service. As soon as I plug in a network connection to them they'll work though.

I can manually map both drives (Connect to server) on the macbooks over wireless without any issue.

Any ideas guys?

2 REPLIES 2

davidacland
Honored Contributor II
Honored Contributor II

I think thats quite an old script from JAMF. It looks like it is set to use kerberos auth. Are your Macs joined to AD?

It could be with RJ45 they get a kerberos ticket at login, but on wireless they don't.

I use the osascript (applescript) command these days as it can automatically fallback to username and password auth if no kerberos tickets are available.

Here's a link to the script I use in Casper: https://github.com/amsysuk/public_scripts/blob/master/shareConnect/shareConnect_Casper.sh

ryanvega
New Contributor

@davidacland Yeah our macs on joined to AD. I'll give your script a test and see if that works out better for us and give an update back. Thanks so much!