#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
comment:2 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:3 Changed 12 years ago by
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.
I cannot confirm this bug, BUT I am starting the openvpn server using
which is required for this to work. Did you use the same setting?