HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/lib64/python3.9/site-packages/ldap/controls/__pycache__/libldap.cpython-39.pyc
a

�.d��@s�dZddlmZddlZejeks>Jede�dej�d����ddlZddlmZmZm	Z	Gdd	�d	e�Z
e
e	ej<Gd
d�de�Zee	ej
<Gdd
�d
e�Zee	ej<dS)z�
controls.libldap - LDAP controls wrapper classes with en-/decoding done
by OpenLDAP functions

See https://www.python-ldap.org/ for details.
�)�__version__Nzldap z and _ldap z version mismatch!)�RequestControl�LDAPControl�KNOWN_RESPONSE_CONTROLSc@s(eZdZdZejZd	dd�Zdd�ZdS)
�AssertionControlz�
  LDAP Assertion control, as defined in RFC 4528

  filterstr
    LDAP filter string specifying which assertions have to match
    so that the server processes the operation
  T�(objectClass=*)cCs||_||_dS�N��criticality�	filterstr��selfr
r�r�;/usr/lib64/python3.9/site-packages/ldap/controls/libldap.py�__init__szAssertionControl.__init__cCst�|j�Sr)�_ldapZencode_assertion_controlr�r
rrr�encodeControlValue!sz#AssertionControl.encodeControlValueN)Tr)	�__name__�
__module__�__qualname__�__doc__�ldap�CONTROL_ASSERT�controlTyperrrrrrrs
rc@s(eZdZdZejZd	dd�Zdd�ZdS)
�MatchedValuesControlz�
  LDAP Matched Values control, as defined in RFC 3876

  filterstr
    LDAP filter string specifying which attribute values
    should be returned
  FrcCs||_||_dSrr	rrrrr2szMatchedValuesControl.__init__cCst�|j�Sr)rZ!encode_valuesreturnfilter_controlrrrrrr6sz'MatchedValuesControl.encodeControlValueN)Fr)	rrrrr�CONTROL_VALUESRETURNFILTERrrrrrrrr's
rc@s0eZdZdZejZd
dd�Zdd�Zdd	�Z	dS)�SimplePagedResultsControlz�
  LDAP Control Extension for Simple Paged Results Manipulation

  size
    Page size requested (number of entries to be returned)
  cookie
    Cookie string received with last page
  FNcCs||_|||_|_dSr)r
�size�cookie)r
r
rrrrrrGsz"SimplePagedResultsControl.__init__cCst�|j|j�Sr)rZencode_page_controlrrrrrrrKsz,SimplePagedResultsControl.encodeControlValuecCst�|�\|_|_dSr)rZdecode_page_controlrr)r
ZencodedControlValuerrr�decodeControlValueNsz,SimplePagedResultsControl.decodeControlValue)FNN)
rrrrr�CONTROL_PAGEDRESULTSrrrr rrrrr<s

r)rZldap.pkginforr�ImportErrorrZ
ldap.controlsrrrrrrrrr!rrrr�<module>s�