add RADIUS

master
Marek Isalski 4 years ago
parent 538dd78cca
commit bad9fa19b9

@ -1504,6 +1504,31 @@ system {
}
login {
{% if 'radius' in pillar %}
{% if salt['pillar.get']('radius:old',False) %}
{% for server, server_data in salt['pillar.get']('radius:server',{}).items() %}
radius-server {{ server }} {
port {{ server_data.get('port',1812) }}
secret {{ server_data.get('key',server_data.get('secret','')) }}
timeout {{ server_data.get('timeout',2) }}
}
{% endfor %}
{% if 'source-address' in salt['pillar.get']('radius',{}) %}
radius-source-address {{ pillar['radius:source-address'] }}
{% endif %}
{% else %}
radius {
{% for server, server_data in salt['pillar.get']('radius:server',{}).items() %}
server {{ server }} {
key {{ server_data.get('key',server_data.get('secret','')) }}
}
{% endfor %}
source-address {{ pillar['radius:source-address'] }}
}
{% endif %}
{% endif %}
{% for user, user_data in pillar['users'].items() %}
user {{ user }} {
{% if 'authentication' in user_data %}

Loading…
Cancel
Save