auth-user-pass-verify script on windows

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
nash
OpenVpn Newbie
Posts: 8
Joined: Sat Feb 26, 2011 4:06 am

auth-user-pass-verify script on windows

Post by nash » Tue Mar 01, 2011 5:26 am

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

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

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

Post by Bebop » Tue Mar 01, 2011 6:55 am

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.
The cure for boredom is curiosity

nash
OpenVpn Newbie
Posts: 8
Joined: Sat Feb 26, 2011 4:06 am

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

Post by nash » Tue Mar 01, 2011 7:21 am

OIC, That's the solution.

Thank you very much.

Post Reply