<div dir="ltr">Hi áÒÔ£Í,<br><br>I think it is not possible with L2TP, as you need a link protocol within IPsec to authenticate and give a virutal interface for the client. Both Xauth and L2TP require that you enter a username and password. The only way around this is to write a computer program that starts the windows authentication process and enters the name and password for you.<br>
<br>Thats theoretical, but to show this in practice I have found something online for you:<br><br>rasdial <vpn_name> <vpn_username> <vpn_password><br><br>To disconnect:<br><br>rasdial <vpn_name> /d<br>
<br>Thus, in usable terms, your line would look like this:<br><br>System.Diagnostics.Process.Start("rasdial.exe", "My_VPN My_Username My_Password");<br><br><br>To disconnect from the VPN, simply use this line:<br>
<br>System.Diagnostics.Process.Start("rasdial.exe", "My_VPN /d"); <br><br><br>That sound promissing as the username is entered for you now.<br><br>Also take a look at this page:<br><a href="http://geekswithblogs.net/thibbard/articles/CSharpCodeToMaintainVPNConnectionProgramatically.aspx">http://geekswithblogs.net/thibbard/articles/CSharpCodeToMaintainVPNConnectionProgramatically.aspx</a><br>
<br>This shows a program in c# to connect a VPN.<br><br>Greetings,<br><br>Bart Smink<br><br><br><br><br>2013/3/24 áÒÔ£Í ëÏÎ×ÁÌÀË <<a href="mailto:artret@gmail.com">artret@gmail.com</a>><br>><br>> Hello everyone! I need to use L2TP/IPsec server for roaming users with<br>
> certificate or smartcard authentication (from Window XP/7<br>> client-side). I mean that there shouldn't be any login/password<br>> combination. Client should press "Connect" button, choose certificate<br>
> (or enter PIN for smartcard) and that is all.<br>> Is there any possibilities to do this with xl2tpd + OpenSwan?<br>> Could anybody help?<br>> _______________________________________________<br>> <a href="mailto:Users@lists.openswan.org">Users@lists.openswan.org</a><br>
> <a href="https://lists.openswan.org/mailman/listinfo/users">https://lists.openswan.org/mailman/listinfo/users</a><br>> Micropayments: <a href="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</a><br>
> Building and Integrating Virtual Private Networks with Openswan:<br>> <a href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a><br>
<br><br><br><br>--<br>**** DISCLAIMER ****<br><br>"This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. <br>
Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. <br>If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer".<br>
<br>Thank you for your cooperation.</div>