avoid referrals

master
Бородин Роман 2018-04-26 17:46:19 +03:00
parent 5cef1e34dc
commit ef69f2a53d
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Connection(object):
search_filter = ldap.filter.escape_filter_chars(search_filter)
result = self.conn.search_s(self.search_base, ldap.SCOPE_SUBTREE,
search_filter)
return [dn for (dn, item) in result]
return [dn for (dn, item) in result if item[0] != None]
def get_values(self, dn, attr):
"""Get list of values of given attribute for dn