Home Forums Software InstaDMG Auto-configuring 802.1X for a user on first login Re: Auto-configuring 802.1X for a user on first login

#374301
jdyck
Participant

I don’t know how best to distribute this, but I just fixed a glitch in the setup script with newer hardware which uses the computer GUID rather than MAC address for ByHost prefs… My script only worked with older hardware that uses the MAC address as part of the plist name, corrected script fixes that.

Perhaps I should setup a Google code repository or something? And then people that are interested in contributing can? Is this something anyone would be interested in?

In the interim, you can edit the SetupWiFi.sh script – replace the # Defin the 3 plist files for easier reference section with the following (the code to figure out the proper UUID is by kevinberny from this discussion: [url]https://www.afp548.com/article.php?story=leopard_byhost_changes#comments[/url])
[code]# DYNAMICALLY SET THE LEOPARD UUID FOR THE BYHOST FILE NAMING
if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i “UUID” | cut -c27-50` == “00000000-0000-1000-8000-” ]]; then
LEOUUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i “UUID” | cut -c51-62 | awk {‘print tolower()’}`
elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i “UUID” | cut -c27-50` != “00000000-0000-1000-8000-” ]]; then
LEOUUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i “UUID” | cut -c27-62`
fi

# Define the 3 plist files for easier reference…
AirportPref=/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
EAPProfiles=”$HOME/Library/Preferences/com.apple.eap.profiles.plist”
EAPBindings=”$HOME/Library/Preferences/ByHost/com.apple.eap.bindings.$LEOUUID.plist”[/code]

Comments are closed