Commit 623b925b authored by Hamza Dely's avatar Hamza Dely

auth.py supporte les NAS de type switchCrans

parent 4e104247
......@@ -402,6 +402,7 @@ def authorize_nas(data, ldap):
fed = ldap.search(u'(nom=Federez)')[0]
mach_fed = fed.machines()
base_filter = u'(|(objectClass=machineCrans)(objectClass=borneWifi)'
base_filter += u'(objectClass=switchCrans)'
for mach in mach_fed:
base_filter = base_filter + "(mid=%s)" % mach['mid'][0]
base_filter = base_filter + u')'
......
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