I am looking to refresh self-service at the end of one my scripts in order to detect the new network range.
Some background:
We currently run an applescript that prompts a user for a username and password, connects the Cisco IPSec VPN, and runs "kinit" in order to initialize a kerberos ticket to mount drives off campus. Right now, we scope the VPN and Drives to "off-campus" network segment, so Self-Service shows them 2 policies when they open it (1) Connect VPN and (2) Mount Cloud Drives.
If a user clicks (2) before clicking (1), they have no Kerberos ticket and no VPN connection in order to mount drives.
What I'd like to do is scope the (1) Connect VPN policy to the "Off-Campus" network range, and include something in the script after the VPN connection that refreshes Self-Service (Basically clicks the home button). Doing this will allow me to scope the second part (2) Mount Cloud Drives to the VPN range - only allowing users to attempt to use this when they have a successful VPN connection.
Any ideas how to do this? As mentioned the first script to connect the VPN is currently an AppleScript, but the second script to mount_smbfs is a .Sh script.
Thanks in Advance!