Commit 9e13a851 authored by Daniel STAN's avatar Daniel STAN
Browse files

radius/auth wifi: fix mac "<automatique>"

parent ba1217f4
......@@ -161,7 +161,7 @@ def register_mac(data, machine, conn):
mac = mac.decode('ascii', 'ignore').replace('"','')
mac = lc_ldap.crans_utils.format_mac(value)
mac = lc_ldap.crans_utils.format_mac(mac).lower()
radiusd.radlog(radiusd.L_ERR, 'Cannot format MAC !')
......@@ -250,6 +250,7 @@ def post_auth(data, conn):
if not items:
decision = 'accueil', 'Machine inconnue'
return radiusd.RLM_MODULE_NOTFOUND # TODO faire un truc plus propre
machine = items[0]
proprio = machine.proprio()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment