Skip to content

Commit

Permalink
revert #51 to fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
alexferl committed Jul 16, 2019
1 parent b2c0d10 commit 9a81914
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flask_simpleldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,9 @@ def get_object_details(self, user=None, group=None, query_filter=None,
dn = records[0][1][
current_app.config['LDAP_OBJECTS_DN']]
return dn[0]
if type(records[0][1]) == 'dict':
for k, v in list(records[0][1].items()):
result[k] = v
return result
for k, v in list(records[0][1].items()):
result[k] = v
return result
except ldap.LDAPError as e:
raise LDAPException(self.error(e.args))

Expand Down

0 comments on commit 9a81914

Please sign in to comment.