ldap: do not return referrals in _convert_results_to_unicode (#31273)
Wrong indentation kept referrals.
This commit is contained in:
parent
ebab175401
commit
2bb6f8aab3
|
@ -88,7 +88,7 @@ if PYTHON_LDAP3 is True:
|
|||
if dn is not None:
|
||||
# tuple is a real entry with a DN not a search reference
|
||||
attrs = {attribute: filter_non_unicode_values(attrs[attribute]) for attribute in attrs}
|
||||
yield dn, attrs
|
||||
yield dn, attrs
|
||||
|
||||
def search_s(self, base, scope, filterstr='(objectclass=*)', attrlist=None, attrsonly=0):
|
||||
return self._convert_results_to_unicode(
|
||||
|
@ -147,7 +147,7 @@ elif PYTHON_LDAP3 is False:
|
|||
if dn is not None:
|
||||
# tuple is a real entry with a DN not a search reference
|
||||
attrs = {attribute: filter_non_unicode_values(attrs[attribute]) for attribute in attrs}
|
||||
yield force_text(dn), attrs
|
||||
yield force_text(dn), attrs
|
||||
|
||||
def search_s(self, base, scope, filterstr='(objectclass=*)', attrlist=None, attrsonly=0):
|
||||
base = force_bytes(base)
|
||||
|
|
Loading…
Reference in New Issue