From 19418d455b5c0fc70494ad9b4ddf46ade7db555b Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Sat, 17 Nov 2012 00:46:54 +0100 Subject: [PATCH] [radius_auth] Pas d'auth radius pour machine Cr@ns Ignore-this: be69bba8f970437ac8f7de2636d990a2 darcs-hash:20121116234654-28565-65db4d79794aeac67f07bfa0987a7b2d257bc303.gz --- radius_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radius_auth.py b/radius_auth.py index 485b7046..393135b6 100644 --- a/radius_auth.py +++ b/radius_auth.py @@ -59,7 +59,7 @@ def do_auth(mac, prise): # donc sur uplink ou switch non filtré # But : éviter le spoof d'une mac d'une machine clef proprio = m[0].proprietaire() - if proprio.__class__ == AssociationCrans and m[0].prise() == u'N/A': + if proprio.__class__ == AssociationCrans: return (-1, "Machine du crans", "") # blockliste bloq