From ec3d8494310d2f54bd59237abf5819611d3eec8a Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Sun, 7 Sep 2008 01:38:24 +0200 Subject: [PATCH] les clubs n'ont pas de champ 'adherentPayant' darcs-hash:20080906233824-af139-ff401d0c2ca70a1cd53bd0becf90b6ceac0a0299.gz --- radius_auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radius_auth.py b/radius_auth.py index cd68f4e2..b4bec355 100755 --- a/radius_auth.py +++ b/radius_auth.py @@ -6,7 +6,7 @@ from commands import getoutput from syslog import * sys.path.append('/usr/scripts/gestion') -from ldap_crans import crans_ldap, AssociationCrans +from ldap_crans import crans_ldap, AssociationCrans, Club from config import ann_scol, dat, vlans def chap_ok(password, challenge, clear_pass) : @@ -57,7 +57,7 @@ def do_auth(mac): return (-1, "Bloquage total des services pour cette machine", "") # L'adherent ne paie pas, on le met sur le vlan radin - if not proprio.adherentPayant(): + if not isinstance(proprio, Club) and not proprio.adherentPayant(): return (0, "Ne paie pas", "radin") # Paiment ok ?