freeradius/auth.py: préparation à l'auth filaire

This commit is contained in:
Daniel STAN 2014-07-22 19:49:06 +02:00
parent 5446bb8142
commit 77e0b1daad
4 changed files with 159 additions and 68 deletions

View file

@ -17,14 +17,14 @@ delattr(sys, 'argv')
auth.instantiate(())
p=(
('Calling-Station-Id', 'ba:27:eb:3c:54:d5'),
('User-Name', 'test18'),
('Calling-Station-Id', 'b0:79:94:cf:d1:9a'),
('User-Name', 'moo-torola'),
)
print repr(auth.wifi_authorize(p))
print repr(auth.authorize_wifi(p))
print "wait for 3s, tu peux aller crasher le serveur pg ou ldap"
sys.stdout.flush()
time.sleep(3)
print repr(auth.post_auth(p))
print repr(auth.post_auth_wifi(p))