Hello,
Is it possible to configure OpenVPN client on Linux to read user/pass from file rather than from standard input?
Regards,
Angel Tsankov
Configure client to read user/pass from file?
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue May 04, 2010 6:21 am
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Configure client to read user/pass from file?
from IRC,
[03:00] <vpnHelper> krzie: "pwfile" is (#1) OpenVPN will only read passwords from a file if it has been built with the --enable-password-save configure option, or on Windows by defining ENABLE_PASSWORD_SAVE in config-win32.h, or (#2) see --auth-user-pass in the manual (!man) for more info
[03:00] <krzie> assuming you use user/pass
[03:00] <krzie> which would be done via:
[03:00] <krzie> !authpass
[03:00] <vpnHelper> krzie: "authpass" is (#1) please see --auth-user-pass-verify in the manual to learn how to force clients to use passwords in addition to certs, or (#2) or to ONLY use passwords (no certs, highly NOT recommended) also use --client-cert-not-required, or (#3) and if you want the login name to be used as the common-name for things like ccd entries, use --username-as-common-name
Hope that helped,
-krzee
[03:00] <vpnHelper> krzie: "pwfile" is (#1) OpenVPN will only read passwords from a file if it has been built with the --enable-password-save configure option, or on Windows by defining ENABLE_PASSWORD_SAVE in config-win32.h, or (#2) see --auth-user-pass in the manual (!man) for more info
[03:00] <krzie> assuming you use user/pass
[03:00] <krzie> which would be done via:
[03:00] <krzie> !authpass
[03:00] <vpnHelper> krzie: "authpass" is (#1) please see --auth-user-pass-verify in the manual to learn how to force clients to use passwords in addition to certs, or (#2) or to ONLY use passwords (no certs, highly NOT recommended) also use --client-cert-not-required, or (#3) and if you want the login name to be used as the common-name for things like ccd entries, use --username-as-common-name
Hope that helped,
-krzee
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue May 04, 2010 6:21 am
Re: Configure client to read user/pass from file?
@krzee:
Thanks again!
Thanks again!