diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-06-17 13:24:04 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-06-17 13:24:04 +0000 |
commit | e932d80b7b97ecb586c1d1be7750277c84ea65d1 (patch) | |
tree | 4530e39d8c28a3927e548851b855aa52cdd1a692 /data | |
parent | 883426259651f400fda05446f8ecef5697cbcd60 (diff) | |
download | vyos-1x-e932d80b7b97ecb586c1d1be7750277c84ea65d1.tar.gz vyos-1x-e932d80b7b97ecb586c1d1be7750277c84ea65d1.zip |
login: radius: T2299: Implement RADIUS servers priority
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/system-login/pam_radius_auth.conf.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/system-login/pam_radius_auth.conf.tmpl b/data/templates/system-login/pam_radius_auth.conf.tmpl index e38f45035..ec2d6df95 100644 --- a/data/templates/system-login/pam_radius_auth.conf.tmpl +++ b/data/templates/system-login/pam_radius_auth.conf.tmpl @@ -2,7 +2,7 @@ # RADIUS configuration file {% if radius_server %} # server[:port] shared_secret timeout source_ip -{% for s in radius_server if not s.disabled %} +{% for s in radius_server|sort(attribute='priority') if not s.disabled %} {% set addr_port = s.address + ":" + s.port %} {{ "%-22s" | format(addr_port) }} {{ "%-25s" | format(s.key) }} {{ "%-10s" | format(s.timeout) }} {{ radius_source_address if radius_source_address }} {% endfor %} |