Tobias,<br><br>Awesome! That sounds like it will work, thanks so much for the great find!!<br><br>Chris Zelenak<br><br><br>On Monday, November 28, 2011, Tobias Brunner <<a href="mailto:tobias@strongswan.org">tobias@strongswan.org</a>> wrote:<br>
> Hi Chris,<br>><br>>> With this config, w/ and w/o UNITY_SAVE_PASSWD, I get prompted for XAuth<br>>> credentials on each VPN connect. The VPN connection is added through a<br>>> .mobileconfig file, using VPN on demand on the iOS side.<br>
><br>> Ah, I didn't know this feature and I never actually used Apple's<br>> configuration utility. My tests were with a configuration created<br>> directly on the phone (which has no option to configure VPN on demand).<br>
> Anyway, it seems the client behaves differently if the config is<br>> created on the phone than if it is created with the configuration<br>> utility. I found a (german) tutorial describing how to configure a VPN<br>
> connection using said tool, which also offers a solution to store the<br>> XAuth password [1]. It roughly translates to this: "Instead of<br>> transferring the config with the configuration utility directly to the<br>
> phone, export it as file and import that file via email on the phone.<br>> (That's probably something you already did as the export results in a<br>> .mobileconfig file). Before sending the config to the phone, edit the<br>
> XML file, search for the XAuthName entry and add the following two lines<br>> after it:<br>><br>> <key>XAuthPassword</key><br>> <string>yourpassword</string><br>><br>> As opening the patched .mobileconfig file in the configuration utility<br>
> would remove the added lines, the file has to be transferred to the<br>> phone via email."<br>><br>> I did not try this, so I'm not sure if it works. Of course, this also<br>> doesn't answer the question why UNITY_SAVE_PASSWD does not work, or if<br>
> it is even supported by iOS.<br>><br>> Regards,<br>> Tobias<br>><br>> [1] <a href="http://www.apfeltalk.de/forum/tutorial-vpn-demand-t335026.html">http://www.apfeltalk.de/forum/tutorial-vpn-demand-t335026.html</a><br>
>