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()
encoded_dn = quote(item['dn'])
_group = self._patient_get('/profile/dn/{}'.format(
if _group:
if name in _group['group'][0]['aliases']:
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