Skip to content

Commit bc1dcba

Browse files
committed
backport @9a81914 to 1.3.x and bump to 1.3.3
1 parent 0b3df0b commit bc1dcba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

flask_simpleldap/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,9 @@ def get_object_details(self, user=None, group=None, query_filter=None,
197197
dn = records[0][1][
198198
current_app.config['LDAP_OBJECTS_DN']]
199199
return dn[0]
200-
if type(records[0][1]) == 'dict':
201-
for k, v in list(records[0][1].items()):
202-
result[k] = v
203-
return result
200+
for k, v in list(records[0][1].items()):
201+
result[k] = v
202+
return result
204203
except ldap.LDAPError as e:
205204
raise LDAPException(self.error(e.args))
206205

0 commit comments

Comments
 (0)