From 9af8daef9d597a98c610cc3bf0cefd609d25ef3b Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 7 Nov 2012 17:41:18 +0100 Subject: [PATCH] [radius_auth] artefact du BatG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 8b00805113e688b41bd5e81e0d552d99 Quand le bâtiment était routé à part, c'est bien ça ? darcs-hash:20121107164118-28565-f132011974a9920f64ad19ff0389bae993f8cc56.gz --- radius_auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radius_auth.py b/radius_auth.py index 66dabd23..6e01bd7f 100644 --- a/radius_auth.py +++ b/radius_auth.py @@ -40,8 +40,7 @@ def do_auth(mac): if len(m) == 0: return (0, "Mac inconnue", "accueil") elif len(m) > 1: - if not m[0].proprietaire().chbre().startswith('G'): - return (-1, "Pb recherche mac (nb résultat %d!=1)" % len(m), "") + return (-1, "Pb recherche mac (nb résultat %d!=1)" % len(m), "") # N'appartient pas au Crans et n'a pas de prise attribuée # donc sur uplink ou switch non filtré