summaryrefslogtreecommitdiff
path: root/data/templates/ocserv/ocserv_passwd.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/ocserv/ocserv_passwd.j2')
-rw-r--r--data/templates/ocserv/ocserv_passwd.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/ocserv/ocserv_passwd.j2 b/data/templates/ocserv/ocserv_passwd.j2
new file mode 100644
index 000000000..30c79d66a
--- /dev/null
+++ b/data/templates/ocserv/ocserv_passwd.j2
@@ -0,0 +1,8 @@
+#<username>:<group>:<hash>
+{% if username is vyos_defined %}
+{% for user, user_config in username.items() %}
+{% if user_config.disable is not vyos_defined %}
+{{ user }}:*:{{ user_config.hash }}
+{% endif %}
+{% endfor %}
+{% endif %} \ No newline at end of file