diff --git a/radius_auth.py b/radius_auth.py index 60dd44db..d37e0d4d 100644 --- a/radius_auth.py +++ b/radius_auth.py @@ -40,7 +40,8 @@ def do_auth(mac): if len(m) == 0: return (0, "Mac inconnue", "accueil") elif len(m) > 1: - return (-1, "Pb recherche mac (nb résultat %d!=1)" % len(m), "") + if not m[0].proprietaire().chbre().startswith('G'): + 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é