From 8b81118e30e26d8cf2cbf0c3e1a5774b7c94d99b Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 1 Oct 2014 21:46:34 +0200 Subject: [PATCH] auth.py: pas d'anti-squattage pour les XclY --- freeradius/auth.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freeradius/auth.py b/freeradius/auth.py index 95685091..52014d01 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -388,6 +388,10 @@ def decide_vlan(data, is_wifi, conn): is_ma = bool(proprio.get('droits', False)) if chbre is None and not is_ma: decision = "accueil", u"Chambre inconnue" + elif 'cl' in chbre: + # Pour les locaux clubs, il n'y a pas forcément un club sédentaire + # (typiquement, les locaux sous digicode) + decision = decision[0], decision[1] + u' (local club)' elif chbre is not None: for hebergeur in hebergeurs: # Si on est hébergé par un adhérent ok, ou que c'est notre