diff --git a/freeradius/auth.py b/freeradius/auth.py index f8451c46..03735722 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -133,6 +133,9 @@ def get_machines(data, conn, is_wifi=True, proprio=None): mac = None username = data.get('User-Name', None) if username: + # Pour les requètes venant de federezwifi + username = username.split('@', 1)[0] + username = escape_ldap(username.decode('ascii', 'ignore')) if username.endswith(suffix): username = username[:-len(suffix)]