Mount network share script 10.8?

BenDenham
New Contributor

**When running the amended script at login on my testing machine, no share is being mounted.
The logs in the JSS say it ran ok, but nothing.
Machine is bound to AD using kerberos auth type for script.

Below is my amended script.

If anyone has any ideas, much appreciated?! **

# HARDCODED VALUES SET HERE
shareUsername="$3" #The username of the user to be used to mount the share - leaving this to $3 will mount the share as the currently logged in user
authType="kerberos" #Valid values are "kerberos" (default) or "password"
password="" #Note this only needs to be set if authentication type is "password"
mountType="smb" #The type of file share. Valid types are "afp", "smb", or "dfs". DFS only supports the "kerberos" authentication method
share='smc-main.stellamaris.com.au/staff/shared' #The address of the share you are mounting - if left blank, the script will search for the "SMBHome" attribute in the user record #Example Values: #SMB Share: smb://server.company.com/share #AFP Share: afp://server.company.com/share #DFS Path: server.company.comdfsroot arget

# CHECK TO SEE IF A VALUE WERE PASSED IN FOR PARAMETERS $3 THROUGH $9 AND, IF SO, ASSIGN THEM

if [ "$4" != "" ] && [ "$shareUsername" == "" ]; then shareUsername=$4
fi

if [ "$5" != "" ] && [ "$authType" == "" ];then authType=$5
fi

if [ "$6" != "" ] && [ "$password" == "" ]; then password=$6
fi

if [ "$7" != "" ] && [ "$mountType" == "" ]; then mountType=$7
fi

if [ "$8" != "" ] && [ "$share" == "" ];then share=$8
fi

####################################################################################################

0 REPLIES 0