logins with static keys are NOT possible right now.
You can configure a server to use the pam plugin (pretty much like you did) but the client cannot be configured :
Code: Select all
# openvpn --proto udp --port 1194 --remote ... \
--ifconfig 192.168.222.2 192.168.222.1 \
--auth-user-pass --dev tun
Options error: --auth-user-pass requires --pull
Use --help for more information.
Next attempt:
Code: Select all
# openvpn --proto udp --port 1194 --remote ... \
--ifconfig 192.168.222.2 192.168.222.1 \
--auth-user-pass --dev tun --pull
Options error: Parameter --pull can only be specified in TLS-mode, i.e. where --tls-server or --tls-client is also specified.
Use --help for more information.
but 'tls-server' is incompatible with 'secret' so you're stuck.
The best you can achieve is:
- use a regular 'server' setup
- generate a CA cert and server cert
- don't use a client certificate and specify 'client-cert-not-required' on the server side.
HTH,
JJK