Skip to content
Snippets Groups Projects
Unverified Commit 78f66d8e authored by Alexandre Ferland's avatar Alexandre Ferland Committed by GitHub
Browse files

Merge pull request #84 from fredthomsen/handleEmptyResultsWithRefs

Handle empty search results w/references
parents eade368f 38154963
No related branches found
No related tags found
No related merge requests found
......@@ -185,7 +185,8 @@ class LDAP(object):
ldap.SCOPE_SUBTREE, query, fields)
conn.unbind_s()
result = {}
if records:
if records and\
records[0][0] is not None and isinstance(records[0][1], dict):
if dn_only:
if current_app.config['LDAP_OPENLDAP']:
if records:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment