Posted on 06-10-2014 10:55 AM
Ok, so we are trying to setup a self service button that will add the user to our TLS authenticated wireless. I know it only takes like to clicks for the user to do it themselves, but sometimes you have to hold their hands so why not make a button that will do it for them. Here is what I have so far.
#!/bin/sh
security set-identity-preference -s com.apple.network.eap.user.identity.wlan.ssid.BFCHSWIFI1
Port=`networksetup -listallhardwareports |egrep -A 2 "(AirPort|Wi-Fi)" | grep Device: | awk {'print $2'}`
networksetup -removepreferredwirelessnetwork $Port WIFINAME
networksetup -addpreferredwirelessnetworkatindex $Port WIFINAME 1 WPA2E
So my issue is setting the identity preference to this wifi profile. I tried some of the commands with "networksetup" however, it seems the one I want is depreciated.....
Here it is for reference:
networksetup -settlsidentityonsystemprofile
** Error: This command is no longer supported.
SOMEONE HELP!