[./radius_auth.py] Les machines en blackliste virus et ipv6_ra sont sur le vlan isolement
darcs-hash:20091017130953-8fbb1-2af13a6472ad2f5fa3f1b02dffa2bab1e74374c8.gz
This commit is contained in:
parent
088833dd00
commit
f84db66b7e
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ def do_auth(mac):
|
||||||
if 'bloq' in m[0].blacklist_actif():
|
if 'bloq' in m[0].blacklist_actif():
|
||||||
return (-1, "Bloquage total des services pour cette machine", "")
|
return (-1, "Bloquage total des services pour cette machine", "")
|
||||||
|
|
||||||
|
# les gens qui doivent être isolés
|
||||||
|
if 'virus' in m[0].blacklist_actif() or 'ipv6_ra' in m[0].blacklist_actif() :
|
||||||
|
return (0, "Bad boy", "isolement")
|
||||||
|
|
||||||
# L'adherent ne paie pas, on le met sur le vlan radin
|
# L'adherent ne paie pas, on le met sur le vlan radin
|
||||||
if ((not isinstance(proprio, Club) and not proprio.adherentPayant()) or \
|
if ((not isinstance(proprio, Club) and not proprio.adherentPayant()) or \
|
||||||
('Nounou' in proprio.droits() and AddrInNet(m[0].ip(),'10.42.0.0/16'))):
|
('Nounou' in proprio.droits() and AddrInNet(m[0].ip(),'10.42.0.0/16'))):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue