IEEE8021x Script

Hi Guys,

I just started Applescript the other day so bare with me a little bit.

The school I work at just got a lot of new laptops and we have a nice RADIUS server that they connect to wirelessly (802.1x with EAP-TTLS). I can get that working fine but I wanted to script connecting the wireless network and mapping their home directory to make it easier for the users.

This is the script I have so far.


set u to (display dialog "Enter username" default answer "" with title "Network Username")'s text returned
set p to the text returned of (display dialog "Enter password" default answer "" with title "Network Password" with hidden answer)
set s to "smb://" & u & ":" & p & "@fileserver/" & u


tell application "Internet Connect"
	set confName to (get name of IEEE8021X configuration 1)
	connect configuration confName as user u with password p
end tell


tell application "Finder"
	eject (every disk whose local volume is false)
	delay 1
	try
		mount volume s
	on error
		display dialog "Username or password error!" with title "Network Error" buttons {"Ok"} default button 1
	end try
end tell

The mounting of the home directory works great! But the connect line on the “Internet Connect” section doesn’t seem to do anything. If I change it from IEEE8021X to Bluetooth, PPTP or any of the others they seem to try to connect to that service. IEEE8021X does nothing though.

Any help on this would be much appreciated.

Matt