Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#70 closed Bug / Defect (worksforme)

OpenVPN 2.1.x via-env pushing of password variable doesn't work

Reported by: openvpnpower Owned by:
Priority: critical Milestone:
Component: Generic / unclassified Version: OpenVPN 2.1.2 / 2.1.3 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: password via-env
Cc:

Description

I tried to execute a auth-user-pass-verify script on the OpenVPN-Server with the "via-env" parameter:

#######################################

auth-user-pass-verify /etc/openvpn/check-mapping.pl via-env

#######################################

When the script is executed, I can use every variable like common_name or username except the variable password. This variable is always empty... I think this is a bug, because another user also here described the same problem (see Ticket #38 U/P auth to server fails: Environment Variable missing!). Can anybody help me?

Thanks and Regards.

Change History (3)

comment:1 Changed 13 years ago by JJK

I cannot confirm this bug, BUT I am starting the openvpn server using

script-security 3

which is required for this to work. Did you use the same setting?

comment:2 Changed 13 years ago by JJK

Resolution: worksforme
Status: newclosed

comment:3 Changed 12 years ago by ShakataGaNai

I had this same issue on CentOS running OpenVPN 2.1.4 . The issue is that the init script that comes packaged FORCES "script-security 2" which, even if you set it in the .conf file, cannot be overridden.

So you have to edit the init script to either remove that security level or set it up to 3 - then it works.

Note: See TracTickets for help on using tickets.