Merge branch 'check-federez' into 'master'
Resolve "Radius logic does not check user subscription when connecting from Federez Wifi" Closes #1 See merge request re2o/re2o-radius!6
This commit is contained in:
commit
48fc698ce8
1 changed files with 3 additions and 0 deletions
3
auth.py
3
auth.py
|
@ -213,6 +213,9 @@ def post_auth(data):
|
|||
|
||||
# If proxified request
|
||||
if not nas_type:
|
||||
if not user or not user["access"]:
|
||||
logger.info("Proxified request: %s has no internet access" % (username))
|
||||
return radiusd.RLM_MODULE_REJECT
|
||||
logger.info("Proxified request, nas unknown")
|
||||
return radiusd.RLM_MODULE_OK
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue