Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
0e79ab4e
Commit
0e79ab4e
authored
Jan 23, 2019
by
Hugo LEVY-FALK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vlan id
parent
d26bf4dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
freeradius_utils/auth.py
freeradius_utils/auth.py
+3
-1
No files found.
freeradius_utils/auth.py
View file @
0e79ab4e
...
...
@@ -38,6 +38,7 @@ Inspiré du travail de Daniel Stan au Crans
import
os
import
sys
import
logging
import
traceback
import
radiusd
# Module magique freeradius (radiusd.py is dummy)
from
django.core.wsgi
import
get_wsgi_application
...
...
@@ -117,6 +118,7 @@ def radius_event(fun):
return
fun
(
data
)
except
Exception
as
err
:
logger
.
error
(
'Failed %r on data %r'
%
(
err
,
auth_data
))
logger
.
debug
(
'Function %r, Traceback: %s'
%
(
fun
,
repr
(
traceback
.
format_stack
())))
return
radiusd
.
RLM_MODULE_FAIL
return
new_f
...
...
@@ -398,7 +400,7 @@ def decide_vlan_switch(nas_machine, nas_type, port_number,
DECISION_VLAN
=
int
(
port_profile
.
vlan_untagged
.
vlan_id
)
extra_log
=
u
"Force sur vlan "
+
str
(
DECISION_VLAN
)
else
:
DECISION_VLAN
=
RadiusOption
.
get_cached_value
(
'vlan_decision_ok'
)
DECISION_VLAN
=
RadiusOption
.
get_cached_value
(
'vlan_decision_ok'
)
.
vlan_id
# Si le port est désactivé, on rejette la connexion
if
not
port
.
state
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment