auth-user-pass-verify error
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Jul 13, 2022 12:08 pm
auth-user-pass-verify error
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
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
-
- OpenVPN Protagonist
- Posts: 11136
- Joined: Fri Jun 03, 2016 1:17 pm
Re: auth-user-pass-verify error
See page one of the manual.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Jul 13, 2022 12:08 pm
Re: auth-user-pass-verify error
--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 ?
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 ?
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Jul 13, 2022 12:08 pm
Re: auth-user-pass-verify error
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 ... envpn-2-4/
still same issue.
script-security 3
I also tried above one by reading the manual page
https://openvpn.net/community-resources ... envpn-2-4/
still same issue.
-
- OpenVPN Protagonist
- Posts: 11136
- Joined: Fri Jun 03, 2016 1:17 pm
Re: auth-user-pass-verify error
Did you read page one, yet .. ?
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Jul 13, 2022 12:08 pm
Re: auth-user-pass-verify error
Yes, its the link I have given above right ?.
-
- OpenVPN Protagonist
- Posts: 11136
- Joined: Fri Jun 03, 2016 1:17 pm
Re: auth-user-pass-verify error
Yes, your link also shows the solution.
The problem is caused by the SPACE in "Program Files"
The problem is caused by the SPACE in "Program Files"
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Jul 13, 2022 12:08 pm
Re: auth-user-pass-verify error
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.
auth-user-pass-verify "c:\\author.bat" "via-file"
Thanks. I tried above two lines but still getting same error.
-
- OpenVPN Protagonist
- Posts: 11136
- Joined: Fri Jun 03, 2016 1:17 pm