summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-09 08:34:28 +0100
committerGitHub <noreply@github.com>2024-02-09 08:34:28 +0100
commite6f914429daadd2c812ef8cbe051321a8a3e5e60 (patch)
tree91914de09186cfae40e6848a9aefeef7c4c39b12 /python
parent267579006a98fbdc5802b428d24a917421a56cb2 (diff)
parent3e1a585f9714ffa990bb5751c7a4c7025d7c02fa (diff)
downloadvyos-1x-e6f914429daadd2c812ef8cbe051321a8a3e5e60.tar.gz
vyos-1x-e6f914429daadd2c812ef8cbe051321a8a3e5e60.zip
Merge pull request #2973 from vyos/mergify/bp/sagitta/pr-2950
T5960: Rewritten authentication node in PPTP to a single view (backport #2950)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/accel_ppp_util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/vyos/accel_ppp_util.py b/python/vyos/accel_ppp_util.py
index d60402e48..bd0c46a19 100644
--- a/python/vyos/accel_ppp_util.py
+++ b/python/vyos/accel_ppp_util.py
@@ -144,6 +144,10 @@ def verify_accel_ppp_base_service(config, local_users=True):
if "key" not in radius_config:
raise ConfigError(f'Missing RADIUS secret key for server "{server}"')
+ if dict_search('authentication.radius.dynamic_author.server', config):
+ if not dict_search('authentication.radius.dynamic_author.key', config):
+ raise ConfigError('DAE/CoA server key required!')
+
if "name_server_ipv4" in config:
if len(config["name_server_ipv4"]) > 2:
raise ConfigError(