i'm trying to log to my openvpn-server running on a virtual-xp-machine.
I have problems with autentication using username and password.
Filling out both in OpenVPN Connect i found out, that my auth-script only receives %username%. %password% is always empty - what's wrong?
Server:
Code: Select all
local 192.168.0.3
port 1195
proto udp
dev tun
tls-server
ca "xxx\\ca.crt"
cert "xxx.crt"
key "xxx.key"
dh "xxx.pem"
server 192.168.30.0 255.255.255.0
script-security 2
auth-user-pass-verify "C:\\Programme\\OpenVPN\\auth.bat" via-env
ifconfig-pool-persist ipp-pw.txt
push "route 192.168.0.0 255.255.255.0"
client-config-dir "C:\\Programme\\OpenVPN\\clients\\"
ccd-exclusive
route 192.168.30.0 255.255.255.252
keepalive 30 120
comp-lzo
persist-key
persist-tun
Code: Select all
client
dev tun
proto udp
port 1195
remote xxx
resolv-retry infinite
nobind
persist-key
persist-tun
tls-client
ca ca.crt
cert xxx.crt
key xxx.key
comp-lzo
verb 3
auth-user-pass
Code: Select all
set n_user=%username%-%password%#;
echo %n_user% >c:\tmp\txt.txt
set n_user=%username% %password%
find /n "%n_user%" C:\Programme\OpenVPN\list_isk.txt >result.txt
for /f "skip=1" %%a in (result.txt) do set n=%%a
if "%n%"=="----------" exit 1
exit 0
Mathias