S
S
SteepNET2020-05-13 00:26:11
openvpn
SteepNET, 2020-05-13 00:26:11

OpenVPN server on Windows server, authorization login\password?

Good afternoon!
I must say right away that we are talking about authorization on the server side of OpenVPN, which is installed on Windows Server 2016.

What we have:
Windows server 2016 and an OpenVPN server configured on it with authorization by certificates.
Everything is working!

But it was necessary to additionally configure authorization by login and password.
I tried various methods:
1. openvpn-auth-script in Python
2. auth.vbs script

In both cases,
openvpn_execve appears in the server logs during authorization: CreateProcess C:\Program Files\OpenVPN\config\auth.py failed: Unknown error (errno =193)
WARNING: Failed running command (--auth-user-pass-verify): external program did not execute -- returned error code -1
TLS Auth Error: Auth Username/Password verification failed for peer

Both VBS script and Python script . Python in windows environment successfully launches py scripts from cmd with

python name_script.py key

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2020-05-13
@Drno

Why a script? There is one line in the server config, about password authorization.
Details are on the ovpn website ...
Look at the list of parameters there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question