diff options
author | goodNETnick <pknet@ya.ru> | 2022-02-07 02:04:28 -0500 |
---|---|---|
committer | goodNETnick <pknet@ya.ru> | 2022-03-16 01:46:26 -0400 |
commit | b776003cf55e1035ac83186e44f72764e52e9e0d (patch) | |
tree | 65ce5c16f46ab2471a3345b289b8cac90edded6a /data/templates/ocserv/ocserv_otp_usr.tmpl | |
parent | 0a0d4abc02da89f68d453495ec002d2afecfca7b (diff) | |
download | vyos-1x-b776003cf55e1035ac83186e44f72764e52e9e0d.tar.gz vyos-1x-b776003cf55e1035ac83186e44f72764e52e9e0d.zip |
ocserv: T4231: Added OTP support for Openconnect 2FA
Diffstat (limited to 'data/templates/ocserv/ocserv_otp_usr.tmpl')
-rw-r--r-- | data/templates/ocserv/ocserv_otp_usr.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/ocserv/ocserv_otp_usr.tmpl b/data/templates/ocserv/ocserv_otp_usr.tmpl new file mode 100644 index 000000000..db8893ae8 --- /dev/null +++ b/data/templates/ocserv/ocserv_otp_usr.tmpl @@ -0,0 +1,8 @@ +#<token_type> <username> <pin> <secret_hex_key> <counter> <lastpass> <time> +{% if username is defined %} +{% for user, user_config in username.itmes() %} +{% if user_config.disable is not defined and user_config.otp is defined and user_config.otp is not none %} +{{ user_config.otp.token_tmpl }} {{ user }} {{ user_config.otp.pin | default("-", true) }} {{ user_config.otp.key }} +{% endif %} +{% endfor %} +{% endif %} |