Set VPNService to service "XYZXYZ-VPN" -VPNNAME Tell current location of network preferences create an applescript with name "vpn.scpt", place it under the path mentioned in the bash-script and place the following code inside: set wlanssid to do shell script "networksetup -getairportnetwork en1 | cut -c 24-" Scriptlocation="/System/Library/CoreServices/Captive Network Assistant.app/Contents/MacOS/vpn.scpt" create a bash script with name "Captive Network Assistant", paste the following code inside and replace your file with the same at /System/Library/CoreServices/Captive Network Assistant.app/Contents/MacOS/ #!/bin/bash So im posting a Guide here on how to replace this "feature" with something actually useful and i didn't want it to get lost and be useful to other people The login doesn't happen via browser but via VPN, which makes the Captive Network Assistant completely useless and annoying. In my university we also use such a network which requires users to login. It's aim is to help you login to networks which require authentication (see: Captive Portal), but the feature doesn't store cookies or saves passwords. In my opinion its just a useless and annoying feature. Apple introduced a new "feature" with MacOSX Lion (10.7) which is called Captive Network Assistant.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |