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é