diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-07 21:28:04 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-07 23:23:53 +0100 |
commit | e8a1c291b1d4b90709a68038e16522b4cee82904 (patch) | |
tree | 46c948c322af6107393609be64f53fa8ff3dbeb2 /data/templates/login/authorized_keys.tmpl | |
parent | dcdc4f3ea27f1a26f8baa6b72b51c7911f21e6ba (diff) | |
download | vyos-1x-e8a1c291b1d4b90709a68038e16522b4cee82904.tar.gz vyos-1x-e8a1c291b1d4b90709a68038e16522b4cee82904.zip |
login: radius: T3192: migrate to get_config_dict()
Diffstat (limited to 'data/templates/login/authorized_keys.tmpl')
-rw-r--r-- | data/templates/login/authorized_keys.tmpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/login/authorized_keys.tmpl b/data/templates/login/authorized_keys.tmpl new file mode 100644 index 000000000..639a80e1d --- /dev/null +++ b/data/templates/login/authorized_keys.tmpl @@ -0,0 +1,9 @@ +### Automatically generated by system-login.py ### + +{% if authentication is defined and authentication.public_keys is defined and authentication.public_keys is not none %} +{% for key, key_options in authentication.public_keys.items() %} +{# The whitespace after options is wisely chosen #} +{{ key_options.options + ' ' if key_options.options is defined }}{{ key_options.type }} {{ key_options.key }} {{ key }} +{% endfor %} +{% endif %} + |