crans -> AssociationCrans

adherent -> Adherent
club -> Club

darcs-hash:20060325215156-68412-615c1bfb3b23e16cd10b82cc3dc467e716c258ea.gz
This commit is contained in:
glondu 2006-03-25 22:51:56 +01:00
parent 0a53921e05
commit f16056b8b4
12 changed files with 62 additions and 64 deletions

View file

@ -5,7 +5,7 @@ import os, md5, sys, binascii
from commands import getoutput
sys.path.append('/usr/scripts/gestion')
from ldap_crans import crans_ldap, crans
from ldap_crans import crans_ldap, AssociationCrans
from config import ann_scol, dat
def chap_ok(password, challenge, clear_pass) :
@ -44,7 +44,7 @@ if __name__ == '__main__' :
# 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__ == crans and m[0].prise() == u'N/A' :
if proprio.__class__ == AssociationCrans and m[0].prise() == u'N/A' :
sys.stdout.write("Machine du crans")
sys.exit(-1)