[Freeradius] Create option to set EAP-TTLS-GTC for FreeRadius (#2089)

Creates an option to set freeradius to use EAP-TTLS-GTC.
This can, for example, be used to connect to LDAP databases with hashed passwords.

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing
2020-12-05 09:18:28 +01:00
committed by GitHub
parent 7e71ab69de
commit 19c74251e0
2 changed files with 5 additions and 1 deletions
@@ -13,6 +13,7 @@
<peap>PEAP</peap>
<tls>TLS</tls>
<ttls>TTLS</ttls>
<ttls-gtc>TTLS-GTC</ttls-gtc>
</OptionValues>
</default_eap_type>
<enable_client_cert type="BooleanField">
@@ -628,8 +628,11 @@ eap {
# EAP conversation, then this configuration entry is
# ignored.
#
{% if helpers.exists('OPNsense.freeradius.eap.default_eap_type') and OPNsense.freeradius.eap.default_eap_type == 'ttls-gtc' %}
default_eap_type = gtc
{% else %}
default_eap_type = md5
{% endif %}
# The tunneled authentication request does not usually
# contain useful attributes like 'Calling-Station-Id',
# etc. These attributes are outside of the tunnel,