From 21dd21e74d94c223388cb6daa1e60a53c18fcb5a Mon Sep 17 00:00:00 2001 From: chambart Date: Mon, 1 Oct 2007 05:07:54 +0200 Subject: [PATCH] on laisse l acces pendant 3 jours avec une page sur squid pour ceux qui n ont pas encore readhere darcs-hash:20071001030754-aaf26-79518db99937f10f3151b621465b830afb997548.gz --- radius_auth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radius_auth.py b/radius_auth.py index 9bee12e3..789d9b32 100755 --- a/radius_auth.py +++ b/radius_auth.py @@ -54,6 +54,9 @@ def do_auth(mac): if dat[1] in (8, 9): # En septembre les anciennes adhésions sont OK ann_scol -= 1 + elif dat[1] = 10 and dat[0] in (1,2,3): + # On laisse 3 jours ou les gens ont une page sur squid + ann_scol -= 1 if ann_scol > paid: return (-1, "Échec test LDAP")