[radius_auth] Hack pour le G...
darcs-hash:20091229160310-ffbb2-99091d9e1b6ff2d5999cc85038632df6ced1b67b.gz
This commit is contained in:
parent
306b2f89d2
commit
2d1d576877
1 changed files with 2 additions and 1 deletions
|
@ -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é
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue