Skip to content

Commit 9a81914

Browse files
committed
revert #51 to fix #62
1 parent b2c0d10 commit 9a81914

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

flask_simpleldap/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,9 @@ def get_object_details(self, user=None, group=None, query_filter=None,
195195
dn = records[0][1][
196196
current_app.config['LDAP_OBJECTS_DN']]
197197
return dn[0]
198-
if type(records[0][1]) == 'dict':
199-
for k, v in list(records[0][1].items()):
200-
result[k] = v
201-
return result
198+
for k, v in list(records[0][1].items()):
199+
result[k] = v
200+
return result
202201
except ldap.LDAPError as e:
203202
raise LDAPException(self.error(e.args))
204203

0 commit comments

Comments
 (0)