diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-25 00:15:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 00:15:53 +0200 |
commit | 298f3ec051b5ddb36c53882ae562904e33a6a576 (patch) | |
tree | 8451c5d3e8ef387b79ea3693c0d2748813cc8ba3 | |
parent | 8279745ace5cb3a2a433808349458a35f247fff2 (diff) | |
parent | 19696edc209714933e46d3a2b981f1d2e33eccc2 (diff) | |
download | vyos-1x-298f3ec051b5ddb36c53882ae562904e33a6a576.tar.gz vyos-1x-298f3ec051b5ddb36c53882ae562904e33a6a576.zip |
Merge pull request #942 from yunzheng/T65
openvpn: T65: Fix auth-user-pass authentication only
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py index 1c1c844d0..981a45c88 100755 --- a/src/conf_mode/interfaces-openvpn.py +++ b/src/conf_mode/interfaces-openvpn.py @@ -332,7 +332,7 @@ def verify(openvpn): if 'ca_cert_file' not in openvpn['tls']: raise ConfigError('Must specify "tls ca-cert-file"') - if not (openvpn['mode'] == 'client' and 'auth_file' in openvpn['tls']): + if not (openvpn['mode'] == 'client' and 'authentication' in openvpn): if 'cert_file' not in openvpn['tls']: raise ConfigError('Missing "tls cert-file"') |