diff --git a/radius_auth.py b/radius_auth.py index e022d82b..092500e0 100644 --- a/radius_auth.py +++ b/radius_auth.py @@ -2,8 +2,7 @@ # -*- coding: iso-8859-15 -*- import os, md5, sys, binascii -from commands import getoutput -from syslog import * +from syslog import syslog, openlog sys.path.append('/usr/scripts/gestion') from ldap_crans import crans_ldap, AssociationCrans, Club @@ -23,9 +22,7 @@ def chap_ok(password, challenge, clear_pass) : if md5.new(password[0] + clear_pass + challenge).digest() == password[1:] : return True except : - pass - - return False + return False def do_auth(mac): """Effectue l'authentification. Renvoie (success, msg,