summaryrefslogtreecommitdiff
path: root/data/templates/sstp/chap-secrets.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-05 17:16:06 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-05 17:16:06 +0200
commite66abf4117d2b2c91d54a418ce10de91584c2035 (patch)
tree0bc4d616a46d6bc86f2decc8b55ba715b5d357d1 /data/templates/sstp/chap-secrets.tmpl
parent189b1fbabc17bb65e4a4293788a6abbea9923b30 (diff)
downloadvyos-1x-e66abf4117d2b2c91d54a418ce10de91584c2035.tar.gz
vyos-1x-e66abf4117d2b2c91d54a418ce10de91584c2035.zip
sstp: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data/templates/sstp/chap-secrets.tmpl')
-rw-r--r--data/templates/sstp/chap-secrets.tmpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/sstp/chap-secrets.tmpl b/data/templates/sstp/chap-secrets.tmpl
new file mode 100644
index 000000000..dd00d7bd0
--- /dev/null
+++ b/data/templates/sstp/chap-secrets.tmpl
@@ -0,0 +1,10 @@
+# username server password acceptable local IP addresses shaper
+{% for user in local_users %}
+{% if user.state == 'enabled' %}
+{% if user.upload and user.download %}
+{{ "%-12s" | format(user.name) }} * {{ "%-16s" | format(user.password) }} {{ "%-16s" | format(user.ip) }} {{ user.download }} / {{ user.upload }}
+{% else %}
+{{ "%-12s" | format(user.name) }} * {{ "%-16s" | format(user.password) }} {{ "%-16s" | format(user.ip) }}
+{% endif %}
+{% endif %}
+{% endfor %}