mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add support for incomplete (truncated) search results.
ldap2.find_entries now returns a tuple containing 2 values. First, a list of entries (dn, entry_attrs), Second, the truncated flag. If the truncated flag is True, search results hit a server limitation and are incomplete. This patch also removes decoding of non-string scalar python types into unicode (they are left unchanged).
This commit is contained in:
committed by
Rob Crittenden
parent
473e03d2f7
commit
ad54fc3399
@@ -127,7 +127,7 @@ class Encoder(object):
|
||||
var.decode(self.encoder_settings.decode_from)
|
||||
)
|
||||
elif isinstance(var, (bool, float, int, long)):
|
||||
return self.encoder_settings.decode_postprocessor(unicode(var))
|
||||
return var
|
||||
elif isinstance(var, list):
|
||||
return [self.decode(m) for m in var]
|
||||
elif isinstance(var, tuple):
|
||||
|
||||
Reference in New Issue
Block a user