summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2024-02-07 12:26:49 +0200
committeraapostoliuk <a.apostoliuk@vyos.io>2024-02-07 18:54:03 +0200
commit018110200c9a82815dd5d0510f0732d7159c0d59 (patch)
tree7a7ee8db5ad7a565562686e16850d2761f7ed048 /data
parent630a242cecaefb576513ecdc4e944bfc63515982 (diff)
downloadvyos-1x-018110200c9a82815dd5d0510f0732d7159c0d59.tar.gz
vyos-1x-018110200c9a82815dd5d0510f0732d7159c0d59.zip
T5960: Rewritten authentication node in PPTP to a single view
Rewritten authentication node in accel-ppp services to a single view. In particular - PPTP authentication.
Diffstat (limited to 'data')
-rw-r--r--data/templates/accel-ppp/pptp.config.j210
1 files changed, 1 insertions, 9 deletions
diff --git a/data/templates/accel-ppp/pptp.config.j2 b/data/templates/accel-ppp/pptp.config.j2
index 7fe4b17bf..290e6235d 100644
--- a/data/templates/accel-ppp/pptp.config.j2
+++ b/data/templates/accel-ppp/pptp.config.j2
@@ -9,15 +9,7 @@ ippool
{# Common IPv6 definitions #}
{% include 'accel-ppp/config_modules_ipv6.j2' %}
{# Common authentication protocols (pap, chap ...) #}
-{% if authentication.require is vyos_defined %}
-{% if authentication.require == 'chap' %}
-auth_chap_md5
-{% elif authentication.require == 'mschap' %}
-auth_mschap_v1
-{% else %}
-auth_{{ authentication.require.replace('-', '_') }}
-{% endif %}
-{% endif %}
+{% include 'accel-ppp/config_modules_auth_protocols.j2' %}
[core]
thread-count={{ thread_count }}