Opened 12 years ago

Closed 11 years ago

#240 closed Bug / Defect (fixed)

auth-user-pass-verify via-env does not work

Reported by: jstuemp Owned by:
Priority: major Milestone:
Component: Generic / unclassified Version: OpenVPN 2.3-beta / 2.3-RC (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

The option auth-user-pass-verify via-env does not work.
Tested a lot but the authentication is always successful - regardless of the script´s exit status.

Used Environment:
Windows SBS Server 2008 64bit
openvpn-install-2.3_rc1-I002-x86_64.exe
auth.bat file for authentication
script-security 3

Even a Batch file containing only "Exit 1" (username and password ignored) results in a successful authentification.

Finally installed Version 2.2.2 where everything works as expected.

Change History (2)

comment:1 Changed 11 years ago by JoshC

Starting with OpenVPN 2.3.0, the deprecated "system" method for process execution was removed. A bug prevented the newer CreateProcessW() call from working with "console" applications in Windows (such as batch scripts that get run through cmd.exe.) 2.2.2 also had this same bug, but it could be worked-around by using the deprecated system() call.

A patch that fixes this issue has been sent for inclusion into a future release. The relevant patch can be found here: http://permalink.gmane.org/gmane.network.openvpn.devel/7592 .

comment:2 Changed 11 years ago by Gert Döring

Resolution: fixed
Status: newclosed

Patch has been applied to master and release/2.3 branches.

If possible, we'll try to release 2.3.2 next week, with this patch included.

I'm closing the ticket now. Please re-open if 2.3.2 (when released) should not fix the issue.

Note: See TracTickets for help on using tickets.