brads I tried to add the custom script to auth-user-pass-verify through server conf but when I tried to start the openvpn getting error as auth-user-pass-verify "C:\\Program Files\\OpenVPN\\config\\author.bat" via-file script-security 3 Options error: the --auth-user-pass-verify directive should have at most 2 parameters. To pass a list of arguments as one of the parameters, try enclosing them in double quotes (""). Use --help for more information. Any suggestions ? using openvpn 2.5.7
brads --auth-user-pass-verify cmd method: Query client for username/password and run command cmd to verify. If method='via-env', pass user/pass via environment, if method='via-file', pass user/pass via temporary file. This is what I see if I use --help with openvpn binary. I don't know what I am missing here. Can you show me what I am missing from the line I used ?
brads auth-user-pass-verify "C:\\Program Files\\OpenVPN\\config\\author.bat" "via-file" script-security 3 I also tried above one by reading the manual page https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/ still same issue.
TinCanTech Yes, your link also shows the solution. The problem is caused by the SPACE in "Program Files"
brads auth-user-pass-verify "c:\\author.bat" via-file auth-user-pass-verify "c:\\author.bat" "via-file" Thanks. I tried above two lines but still getting same error.
TinCanTech You need to post your config and log file. https://forums.openvpn.net/viewtopic.php?t=22603#p68963