Re: Programatically creating an VPN connection
Re: Programatically creating an VPN connection
- Subject: Re: Programatically creating an VPN connection
- From: Dave Camp <email@hidden>
- Date: Thu, 11 Aug 2005 18:19:44 -0700
I've re-read the System Configuration Programming docs and tinkered
with scutil some more, but I still can't seem to figure out where the
VPN settings are stored.
My test setup was to create a new Location in the Network prefs,
Create a L2TP VPN configuration in Internet Config, and disable all
the services in Network other than Ethernet and VPN (L2TP). A pretty
simple test case.
According to the docs, VPN's are a subtype of PPP, and I can see that
in the dynamic store. setup:network/store/service/uuid/Inerface shows
Windows L2TP with a type of PPP and a subtype of L2TP. However, I
don't see anything else in the dynamic store that has anything to do
with VPN settings; certainly nothing corresponding to the fields I
populated in Internet Config.
Browsing the sets using MoreSCF and a test app, I can find the set I
created and find the VPN service within it. I see the following:
IPv4 ConfigMethod is set to PPP
Interface points to Windows L2TP
PPP has lots of PPP key/value pairs, but no key/values that look
like VPN settings.
So, I can see how everything is hooked up, but I can't seem to find
any actual VPN configuration settings. Stuff like the server address,
name, auth type, shared secret, etc.
Obviously this is stored somewhere because Internet Config can create
VPN connections and the data is saved.
Is there a public way of doing what Internet Config does? Previous
questions asked on the list about this seem to have gone unanswered
(I know it's not a support forum, so that's not completely
unexpected)...
Is this more complicated than can be handled on list (I can use a DTS
incident if that is needed)?
Thanks!
Dave
On Aug 1, 2005, at 1:41 PM, Dave Camp wrote:
We have a shipping ISP assistant app that creates a new network
location when the user clicks our Connect button. It fills in all
the data for the connection type (airport, modem, etc) and works
well. Our location is removed at the end of the session, thus
leaving all of the users old settings unchanged.
We would now like to add support for Apple VPNs to the app such
that the user could enter their VPN information into our app and it
would then configure the VPN settings when they press our Connect
button.
Is this possible? I can see the entries created by Internet Connect
for the VPN settings, but I don't see entries for credentials (user
name, password, shared secret, etc). Are there any gotchas I should
be looking out for while scoping out this feature?
Thanks,
Dave
---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40criticalpath.com
This email sent to email@hidden
---
Among the chief weapons of UNIX: Fear, surprise and ruthless
efficiency.
_______________________________________________
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