Tobias,<div><br></div><div>Tested and that works great.  Thanks again!</div><div><br></div><div>Chris Zelenak</div><div><br><br><div class="gmail_quote">On Mon, Nov 28, 2011 at 5:01 PM, Tobias Brunner <span dir="ltr"><<a href="mailto:tobias@strongswan.org">tobias@strongswan.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Chris,<br>
<div class="im"><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>
</div>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" target="_blank">http://www.apfeltalk.de/forum/tutorial-vpn-demand-t335026.html</a><br>
</blockquote></div><br></div>