Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion devpi_ldap/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ def extract_search(s):
return []
elif attribute_name in ('dn', 'distinguishedName'):
def extract_search(s):
return [s[attribute_name]]
if attribute_name in s:
return [s[attribute_name]]
else:
return []
else:
threadlog.error('configured attribute_name {} not found in any search results'.format(attribute_name))
return []
Expand Down