You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For operations with add_ctrls=True, l_ldap_result4 mishandles resp_data.
l_ldap_result4() calls LDAPmessage_to_python() to create pmsg
LDAPmessage_to_python() calls LDAPControls_to_List() to convert server controls to a Python list.
LDAPControls_to_List() returns a tuple of (oid: str, critical: bool, ber: bytes).
The Python implementation of result4 uses _bytesify_results(resp_data, with_ctrls=add_ctrls) to convert results. For add_ctrls it use bytesify_result_value to convert resp_data.
bytesify_result_value wrongly assumes that a List[Tuple[str, bool, bytes]] is a list of referrals when it's in fact a triple of control values.