[solved] Re: Snow Leopard VPN connection - halfway there
[solved] Re: Snow Leopard VPN connection - halfway there
- Subject: [solved] Re: Snow Leopard VPN connection - halfway there
- From: Dave Carpeneto <email@hidden>
- Date: Fri, 06 Nov 2009 09:59:50 -0500
OK, I wound up fixing this via
applescript:
tell application "System Events"
connect service "myVpn" of current location of network preferences
delay 10
keystroke "password"
key code 36
delay 10
key code 36
end tell
... this seems to work just fine - no need to figure this out with networksetup
:-)
Dave Carpeneto wrote:
Hi - I'm
trying to connect via script to my work's Cisco VPN via networksetup in
OS X 10.6.1, however I have the following two issues:
A) Something doesn't allow me to save the password, which means I get a
dialog pop-up when I issue "sudo networksetup -connectpppoeservice
serviceName":
# sudo networksetup -setpppoeaccountname serviceName userName
# sudo networksetup -setpppoepassword serviceName userPass
2009-11-03 21:00:41.041 networksetup[3145:e07] failed to save PPP
password in system keychain: Invalid argument
#
B) Connecting the VPN works fine, but disconnecting does nothing (No
error, return code is '0'):
# sudo networksetup -disconnectpppoeservice serviceName
# sudo networksetup -showpppoestatus serviceName
connected
# echo $?
0
... any ideas on either of the above ? If networksetup is not the road
forward is this doable via applescript ? I can find heaps of
applescripts to connect & disconnect, but none that automate the
entry of a password for this situation :-(
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden