Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/freeradius: add Tunnel-Password field to radius user #4235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,10 @@
<allownew>true</allownew>
<help>Select the configured AVPairs for this user.</help>
</field>
<field>
<id>user.tunnel_password</id>
<label>Tunnel-Password</label>
<type>password</type>
<help>Set the Tunnel-Password attribute for the user. Allowed characters are 0-9, a-z, A-Z, and ,._-!$%/()+#=: with up to 128 characters.</help>
</field>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@
<Multiple>Y</Multiple>
<Required>N</Required>
</linkedAVPair>
<tunnel_password type="TextField">
<Required>N</Required>
<mask>/^([0-9a-zA-Z._\-\!\$\%\/\(\)\+\#\=\{\}:]){1,128}$/u</mask>
</tunnel_password>
</user>
</users>
</items>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
Service-Type = {{ servicelist }},
{% endfor %}
{% endif %}
{% if user_list.tunnel_password is defined %}
Tunnel-Password = {{ user_list.tunnel_password }},
{% endif %}
{% if helpers.exists('OPNsense.freeradius.general.vlanassign') and OPNsense.freeradius.general.vlanassign == '1' %}
{% if user_list.vlan is defined %}
Tunnel-Type = VLAN,
Expand Down