Verified Commit 595166be authored by Peter Stanko's avatar Peter Stanko
Browse files

Fixing the LDAP description getter

parent 33e6d2a6
......@@ -43,6 +43,8 @@ class UserLdapService:
log.debug(f"[LDAP] User ({username}): {user_entity}")
if not user_entity:
return None
if 'description' not in user_entity.entry_attributes:
return None
desc = user_entity.description
uco = self._parse_uco_from_desc(desc)
log.debug(f"[LDAP] User's UCO ({username}): {uco}")
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