I just copied this site http://wiki.openvpn.eu/index.php/Authentifizierung_am_Server
so i added 'auth-user-pass-verify C:\\Program Files\\OpenVPN\\auth.bat via-env' line in my server.ovpn file.
This is contants in auth.bat script
Code: Select all
set n_user=%username% %password%;
find /n "%n_user%" C:\Program Files\OpenVPN\list.txt >result.txt
for /f "skip=1" %%a in (result.txt) do set n=%%a
if "%n%"=="----------" exit 1
and made 'list.txt' file
and starting server was correctly success.
But when client tried to connect, login option didn't work..
I could see login popup but client could login incorrect id and password.
i think that auth.bat doesnt work or output '0' anyway, but i dont know about sripts....
anyone can help me?