Commit e8a8c9e8 authored by Daniel Stan's avatar Daniel Stan

auth.py: sparadrap

parent 7f370560
......@@ -1000,7 +1000,7 @@ class RadiusEventHandler(object):
logger.debug('Trying to find a match by MAC (%s)', mac)
params.update({'af' : 'macAddress', 'address' : crans_utils.escape(mac)})
m_list = self.ldap.search(LDAP_FILTER % params)
plug, room, hosts = self._plug_info(nas_id, port) if m_type == TYPE_WIRED else []
plug, room, hosts = self._plug_info(nas_id, port) if m_type == TYPE_WIRED else (None, None, [])
if not m_list and not is_ieee8021X(request) and m_type == TYPE_WIRED and nas_id and port:
# La recherche n'a rien donné, IEEE 802.1X n'est pas utilisé
......
Markdown is supported
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