diff options
author | goodNETnick <33053932+goodNETnick@users.noreply.github.com> | 2022-04-01 12:09:56 +1000 |
---|---|---|
committer | goodNETnick <pknet@ya.ru> | 2022-04-09 01:33:25 -0400 |
commit | 1da9cc02d7c83898c267070618e2cc91e16eb1cf (patch) | |
tree | bfe672212ef22b525420428d3f36ff02d6cd5aa0 /data | |
parent | aa5b35b68c1170bfd0b9661bafa72bb10fe6ca95 (diff) | |
parent | 53e20097d227ebf4bdb4dc6c85427ec9c5ec3982 (diff) | |
download | vyos-1x-1da9cc02d7c83898c267070618e2cc91e16eb1cf.tar.gz vyos-1x-1da9cc02d7c83898c267070618e2cc91e16eb1cf.zip |
ocserv: T4231: Added OTP support for Openconnect 2FA
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr/bgpd.frr.tmpl | 3 | ||||
-rw-r--r-- | data/templates/ocserv/ocserv_otp_usr.tmpl | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl index 45e0544b7..0bc0fd36e 100644 --- a/data/templates/frr/bgpd.frr.tmpl +++ b/data/templates/frr/bgpd.frr.tmpl @@ -545,6 +545,9 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none {% if parameters.no_fast_external_failover is defined %} no bgp fast-external-failover {% endif %} +{% if parameters.no_suppress_duplicates is defined %} + no bgp suppress-duplicates +{% endif %} {% if parameters.reject_as_sets is defined %} bgp reject-as-sets {% endif %} diff --git a/data/templates/ocserv/ocserv_otp_usr.tmpl b/data/templates/ocserv/ocserv_otp_usr.tmpl index db8893ae8..fea9af5d5 100644 --- a/data/templates/ocserv/ocserv_otp_usr.tmpl +++ b/data/templates/ocserv/ocserv_otp_usr.tmpl @@ -1,6 +1,6 @@ #<token_type> <username> <pin> <secret_hex_key> <counter> <lastpass> <time> {% if username is defined %} -{% for user, user_config in username.itmes() %} +{% for user, user_config in username.items() %} {% 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 %} |