Page 1 of 1

auth-user-pass-verify script on windows

Posted: Tue Mar 01, 2011 5:26 am
by nash
I have tried

Code: Select all

auth-user-pass-verify login.bat via-file
login.bat is in windows path, and In the login.bat there's a test script look like this

Code: Select all

EXIT 0
When I test this, I got an error "Failed to execute".
Is this the right configuration to do the user/pass authentication ?

Regards

Re: auth-user-pass-verify script on windows

Posted: Tue Mar 01, 2011 6:55 am
by Bebop
From the OpenVPN client log file you can usually see a warning such as:
NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
So if you haven't already, setting '--script-security 2' on the server will be a good start.

If that doesn't work, post your server.conf to maximize chances of proper support.

Re: auth-user-pass-verify script on windows

Posted: Tue Mar 01, 2011 7:21 am
by nash
OIC, That's the solution.

Thank you very much.