| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/python3.9/site-packages/ldap/ |
Upload File : |
"""
ldap.resiter - processing LDAP results with iterators
See https://www.python-ldap.org/ for details.
"""
from ldap.pkginfo import __version__, __author__, __license__
class ResultProcessor:
"""
Mix-in class used with ldap.ldapopbject.LDAPObject or derived classes.
"""
def allresults(self, msgid, timeout=-1, add_ctrls=0):
"""
Generator function which returns an iterator for processing all LDAP operation
results of the given msgid like retrieved with LDAPObject.result3() -> 4-tuple
"""
result_type, result_list, result_msgid, result_serverctrls, _, _ = \
self.result4(
msgid,
0,
timeout,
add_ctrls=add_ctrls
)
while result_type and result_list:
yield (
result_type,
result_list,
result_msgid,
result_serverctrls
)
result_type, result_list, result_msgid, result_serverctrls, _, _ = \
self.result4(
msgid,
0,
timeout,
add_ctrls=add_ctrls
)
return # allresults()