Commit dae35dfc authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Encode dn when searching with it

parent 30d8eb0a
......@@ -155,8 +155,9 @@ class Client:
if item['displayName'].lower() == name.lower():
return item['dn'].lower()
else:
encoded_dn = quote(item['dn'])
_group = self._patient_get('/profile/dn/{}'.format(
item['dn']
encoded_dn
))
if _group:
if name in _group['group'][0]['aliases']:
......
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