[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Bug in 2.0-rc7: --auth-user-pass requires --pull


  • Subject: Re: [Openvpn-users] Bug in 2.0-rc7: --auth-user-pass requires --pull
  • From: James Yonan <jim@xxxxxxxxx>
  • Date: Thu, 13 Jan 2005 20:37:40 -0700 (MST)


On Thu, 13 Jan 2005, Mathias Sundman wrote:

> It was great with the new options error msg, however I get this even 
> though I have pull in my config! 2.0-rc6 works.
> 
> Options error: --auth-user-pass requires --pull
> Use --help for more information.
> 
> My config on WinXP:
> 
> remote xxxx.se 443
> dev tap
> proto tcp-client
> 
> tls-client
> ca xxx-ca.crt
> tls-auth xxxx-tls-auth.key
> pull
> auth-user-pass
> 
> nobind
> mssfix 1400
> resolv-retry infinite
> 
> verb 3

Ah, yes, a silly bug...  Here's the fix:

--- openvpn-2.0_rc7/options.c   2005-01-09 18:49:11.000000000 -0600
+++ options.c   2005-01-13 20:59:57.091696520 -0600
@@ -1656,10 +1656,9 @@
       options->ping_rec_timeout = PRE_PULL_INITIAL_PING_RESTART;
       options->ping_rec_timeout_action = PING_RESTART;
     }
-  else if (options->auth_user_pass_file)
-    {
-      msg (M_USAGE, "--auth-user-pass requires --pull");
-    }
+
+  if (options->auth_user_pass_file && !options->pull)
+    msg (M_USAGE, "--auth-user-pass requires --pull");

James



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users