mirror of https://gitlab.federez.net/re2o/re2o
Browse Source
Resolve "Handle Juniper for autocapture" See merge request federez/re2o!436212-ttl-for-dns-records
15 changed files with 779 additions and 37 deletions
@ -0,0 +1,23 @@ |
|||
python-django |
|||
python-dateutil |
|||
texlive-latex-base |
|||
texlive-fonts-recommended |
|||
python-djangorestframework |
|||
python-django-reversion |
|||
python-pip |
|||
libsasl2-dev libldap2-dev |
|||
libssl-dev |
|||
python-crypto |
|||
python-git |
|||
javascript-common |
|||
libjs-jquery |
|||
libjs-jquery-ui |
|||
libjs-jquery-timepicker |
|||
libjs-bootstrap |
|||
fonts-font-awesome |
|||
graphviz |
|||
git |
|||
gettext |
|||
freeradius-common |
|||
freeradius-python2 |
|||
python-mysqldb |
|||
@ -0,0 +1,29 @@ |
|||
# Your client radius configuration below |
|||
client radius-filaire { |
|||
ipaddr = |
|||
netmask = |
|||
secret = |
|||
require_message_authenticator = no |
|||
nastype = other |
|||
virtual_server = radius-filaire |
|||
} |
|||
client radius-wifi { |
|||
ipaddr = |
|||
netmask = |
|||
secret = |
|||
require_message_authenticator = no |
|||
nastype = other |
|||
virtual_server = radius-wifi |
|||
} |
|||
|
|||
# Parangon (federez) |
|||
client parangon { |
|||
ipaddr = 185.230.78.47 |
|||
secret = please_ask_for_a_secret_to_federez_admin |
|||
} |
|||
|
|||
# Dodecagon (federez) |
|||
client dodecagon { |
|||
ipaddr = 163.172.48.168 |
|||
secret = please_ask_for_a_secret_to_federez_admin |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
django-bootstrap3 |
|||
django-macaddress |
|||
django-ldapdb==1.3.0 |
|||
@ -0,0 +1,60 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.11.23 on 2019-09-10 17:09 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import re2o.mixins |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0061_optionaluser_allow_archived_connexion'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='RadiusAttribute', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('attribute', models.CharField(help_text='See http://freeradius.org/rfc/attributes.html', max_length=255, verbose_name='Attribute')), |
|||
('value', models.CharField(max_length=255, verbose_name='Value')), |
|||
('comment', models.TextField(blank=True, default='', help_text='Use this field to document this attribute.', verbose_name='Comment')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'RADIUS attribute', |
|||
'verbose_name_plural': 'RADIUS attributes', |
|||
}, |
|||
bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model), |
|||
), |
|||
migrations.AddField( |
|||
model_name='radiusoption', |
|||
name='banned_attributes', |
|||
field=models.ManyToManyField(blank=True, help_text='Answer attributes for banned users.', related_name='banned_attribute', to='preferences.RadiusAttribute', verbose_name='Banned attributes.'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='radiusoption', |
|||
name='non_member_attributes', |
|||
field=models.ManyToManyField(blank=True, help_text='Answer attributes for non members.', related_name='non_member_attribute', to='preferences.RadiusAttribute', verbose_name='Non member attributes.'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='radiusoption', |
|||
name='ok_attributes', |
|||
field=models.ManyToManyField(blank=True, help_text='Answer attributes for accepted users.', related_name='ok_attribute', to='preferences.RadiusAttribute', verbose_name='Accepted users attributes.'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='radiusoption', |
|||
name='unknown_machine_attributes', |
|||
field=models.ManyToManyField(blank=True, help_text='Answer attributes for unknown machines.', related_name='unknown_machine_attribute', to='preferences.RadiusAttribute', verbose_name='Unknown machines attributes.'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='radiusoption', |
|||
name='unknown_port_attributes', |
|||
field=models.ManyToManyField(blank=True, help_text='Answer attributes for unknown ports.', related_name='unknown_port_attribute', to='preferences.RadiusAttribute', verbose_name='Unknown ports attributes.'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='radiusoption', |
|||
name='unknown_room_attributes', |
|||
field=models.ManyToManyField(blank=True, help_text='Answer attributes for unknown rooms.', related_name='unknown_room_attribute', to='preferences.RadiusAttribute', verbose_name='Unknown rooms attributes.'), |
|||
), |
|||
] |
|||
@ -0,0 +1,50 @@ |
|||
{% comment %} |
|||
Re2o est un logiciel d'administration développé initiallement au rezometz. Il |
|||
se veut agnostique au réseau considéré, de manière à être installable en |
|||
quelques clics. |
|||
|
|||
Copyright © 2018 Hugo Levy-Falk |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License along |
|||
with this program; if not, write to the Free Software Foundation, Inc., |
|||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
{% endcomment %} |
|||
{% load i18n %} |
|||
{% load acl %} |
|||
{% load logs_extra %} |
|||
|
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>{% trans "Attribute" %}</th> |
|||
<th>{% trans "Comment" %}</th> |
|||
<th></th> |
|||
</tr> |
|||
</thead> |
|||
{% for attribute in radius_attributes %} |
|||
<tr> |
|||
<td>{{ attribute }}</td> |
|||
<td>{{ attribute.comment }}</td> |
|||
<td class="text-right"> |
|||
{% can_edit attribute%} |
|||
{% include 'buttons/edit.html' with href='preferences:edit-radiusattribute' id=attribute.id %} |
|||
{% acl_end %} |
|||
{% can_delete attribute %} |
|||
{% include 'buttons/suppr.html' with href='preferences:del-radiusattribute' id=attribute.id %} |
|||
{% acl_end %} |
|||
{% history_button attribute %} |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
Loading…
Reference in new issue