Configure client to read user/pass from file?

Need help configuring your VPN? Just post here and you'll get that help.

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
angel.tsankov
OpenVpn Newbie
Posts: 2
Joined: Tue May 04, 2010 6:21 am

Configure client to read user/pass from file?

Post by angel.tsankov » Tue May 04, 2010 6:30 am

Hello,

Is it possible to configure OpenVPN client on Linux to read user/pass from file rather than from standard input?

Regards,
Angel Tsankov

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Configure client to read user/pass from file?

Post by krzee » Tue May 04, 2010 8:35 am

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

angel.tsankov
OpenVpn Newbie
Posts: 2
Joined: Tue May 04, 2010 6:21 am

Re: Configure client to read user/pass from file?

Post by angel.tsankov » Tue May 04, 2010 8:37 am

@krzee:

Thanks again!

Post Reply