HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib64/python3.6/site-packages/ldap/controls/__pycache__/libldap.cpython-36.opt-1.pyc
3

�`a��@s�dZddlmZddlZddlZddlmZmZmZGdd�de�Z	e	eej
<Gdd�de�Zeeej<Gd	d
�d
e�Z
e
eej<dS)z�
controls.libldap - LDAP controls wrapper classes with en-/decoding done
by OpenLDAP functions

See https://www.python-ldap.org/ for details.
�)�__version__N)�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)�selfrr	�r�/usr/lib64/python3.6/libldap.py�__init__szAssertionControl.__init__cCstj|j�S)N)�_ldapZencode_assertion_controlr	)r
rrr�encodeControlValue"sz#AssertionControl.encodeControlValueN)Tr)	�__name__�
__module__�__qualname__�__doc__�ldap�CONTROL_ASSERT�controlTyper
rrrrrrs
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
  F�(objectClass=*)cCs||_||_dS)N)rr	)r
rr	rrrr
3szMatchedValuesControl.__init__cCstj|j�S)N)rZ!encode_valuesreturnfilter_controlr	)r
rrrr7sz'MatchedValuesControl.encodeControlValueN)Fr)	rrrrr�CONTROL_VALUESRETURNFILTERrr
rrrrrr(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||_|||_|_dS)N)r�size�cookie)r
rrrrrrr
Hsz"SimplePagedResultsControl.__init__cCstj|j|j�S)N)rZencode_page_controlrr)r
rrrrLsz,SimplePagedResultsControl.encodeControlValuecCstj|�\|_|_dS)N)rZdecode_page_controlrr)r
ZencodedControlValuerrr�decodeControlValueOsz,SimplePagedResultsControl.decodeControlValue)FNN)
rrrrr�CONTROL_PAGEDRESULTSrr
rrrrrrr=s

r)rZldap.pkginforrrZ
ldap.controlsrrrrrrrrrrrrr�<module>s