Skip to content

Commit 2f0435d

Browse files
committed
Allow insecure-passwords in userlists.
1 parent 5512c43 commit 2f0435d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/userlist.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ userlist {{ item.name }}
88
{% endif %}
99
{% if item.users is defined %}
1010
{% for user in item.users %}
11+
{% if user.password is defined %}
1112
user {{ user.name }} password {{ user.password }}{% if user.groups is defined %} groups {{ ','.join(user.groups) }}{% endif %}
12-
13+
{% elif user.insecure_password is defined %}
14+
user {{ user.name }} insecure-password {{ user.insecure_password }}{% if user.groups is defined %} groups {{ ','.join(user.groups) }}{% endif %}
15+
{% endif %}
1316
{% endfor %}
17+
1418
{% endif %}

0 commit comments

Comments
 (0)