Commit e9ff781b authored by Peter NORTHUP's avatar Peter NORTHUP

Adds home / group drives to Favorite Servers, sets NoMAD preferences

parent 4b479481
......@@ -39,6 +39,17 @@ read -p "Enter your adm username: " admuser
# username = "USER INPUT"
# read -p "Enter the username of the eventual user: " username
# adding home drive to favorite servers (cmd-K in finder)
sfltool add-item -n "Home" com.apple.LSSharedFileList.FavoriteServers "smb://istsmb3.ist.local/$USER"
# get group-drive names, add to favorite servers
groups=`ldapsearch -LLL -x -h ldap.ista.local -b "ou=group,dc=ist,dc=ac,dc=at" memberUid=$USER cn | egrep "cn\: \w+grp" | cut -d " " -f 2`
for g in $groups
do
sfltool add-item -n "Group" com.apple.LSSharedFileList.FavoriteServers "smb://istsmb3.ist.local/$g"
sfltool add-item -n "Group-Archive" com.apple.LSSharedFileList.FavoriteServers "smb://archive3.ist.local/archive-$g"
done
# change computer name
scutil --set HostName $hostname
scutil --set LocalHostName $hostname
......@@ -55,6 +66,12 @@ echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
installer -pkg NoMAD.pkg -target /
installer -pkg NoMAD-LaunchAgent.pkg -target /
# NoMAD prefs: IST.LOCAL, use keychain, sync PW
defaults write com.trusourcelabs.NoMAD ADDomain IST.LOCAL
defaults write com.trusourcelabs.NoMAD KerberosRealm IST.LOCAL
defaults write com.trusourcelabs.NoMAD UseKeychain true
defaults write com.trusourcelabs.NoMAD LocalPasswordSync 1
# set scripts as executable
# chmod 755 mount-shares.command mac_install_printers.sh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment