We use Okta as our main identity provider, and I'd like to leverage that alongside Jamf Connect to get Zero-touch working in my environment. is there any advice for disabling Nomad and getting Okta and JC working nicely together?
Solved
Tips for swtiching off Nomad for Jamf Connect and Okta
Best answer by Hugonaut
I've had great success via the following process,
Step 1. Create a Smart Computer Group for computers you want to target.
Step 2. Create the Configuration Profile for Jamf Connect & Scope to Smart Computer Group from Step 1.
Step 3. Create Policy, Add Script Detailed below to Remove NoMad set to run "Before" & Add Jamf Connect Package. Deploy to / Scope to Smart Computer Group from Step 1.
#!/bin/bash
: HEADER = <<'EOL'
βββββββ βββββββ ββββββββββ ββββββββββββββββββββββββ ββββ ββββββ ββββ βββ
ββββββββββββββββββββββββββββ ββββββββββββββββββββββββββ ββββββββββββββββββ βββ
βββββββββββ ββββββ βββββββ ββββββ βββ βββββββββββββββββββββββββ βββ
βββββββββββ ββββββ βββββββ ββββββ βββ βββββββββββββββββββββββββββββ
βββ βββββββββββββββββββββββ βββββββββββ βββ βββ βββ ββββββ ββββββ ββββββ
βββ βββ βββββββ ββββββββββ βββββββββββ βββ βββ ββββββ ββββββ βββββ
Name: Remove Nomad
Description: Unloads launchagent tasks and deletes all NoMAD related files
Parameters: $1-$3 - Reserved by Jamf (Mount Point, Computer Name, Username)
EOL
##########
##########################################################################################
#
# ABOUT THIS PROGRAM
#
# NAME
# removeNomad.sh -- Removes all NoMAD components from computer
#
# SYNOPSIS
# sudo removeNomad.sh
# sudo removeNomad.sh <mountPoint> <computerName> <currentUsername>
#
# DESCRIPTION
#
# Unloads launchagent tasks and deletes all NoMAD related files
#
####################################################################################################
## Get the current user
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk "{ print $3 }"`
# unload LaunchAgent
launchctl unload /Library/LaunchAgents/com.trusourcelabs.NoMAD.plist
launchctl unload "/Users/$loggedInUser/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
# Kill NoMAD process
pkill NoMAD
# Reset Login Window
/usr/local/bin/authchanger -reset
# Remove Files
sudo rm -rf "/Applications/NoMAD.app"
sudo rm -rf "/Library/Managed Preferences/com.trusourcelabs.NoMAD.plist"
sudo rm -rf "/Library/Managed Preferences/$loggedInUser/com.trusourcelabs.NoMAD.plist"
sudo rm -rf "/Users/$loggedInUser/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
sudo rm -rf "/Library/LaunchAgents/com.trusourcelabs.NoMAD.plist"
# Let it ride?
#exit 0Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
