summaryrefslogtreecommitdiff
path: root/data/templates/login/motd_user_dsa_warning.j2
blob: f8164b18445dca4ae400a7bb3c891a7820b7807a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% if user is vyos_defined %}
{%     set ns = namespace (gen_header = True) %}
{%     for user, user_config in user.items() %}
{%         if user_config.authentication.public_keys is vyos_defined %}
{%             for key, key_options in user_config.authentication.public_keys.items() %}
{%                 if key_options.type is vyos_defined('ssh-dss') %}
{%                     if ns.gen_header %}
{%                         set ns.gen_header = False %}
---
{{ ssh_dsa_deprecation_warning | wordwrap(72) }}

{%                     endif %}
User "{{ user }}" with deprecated public-key named: {{ key }}
{%                 endif %}
{%             endfor %}
{%         endif %}
{%     endfor %}
{% endif %}