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: //lib64/python3.9/site-packages/ldap/controls/__pycache__/simple.cpython-39.pyc
a

�.dw�@s�dZddlZddlZddlmZmZmZmZddlm	Z	ddl
mZmZGdd�de�Z
Gdd	�d	e�ZGd
d�de�ZGdd
�d
e
�Zeeej<Gdd�de
�Zeeej<Gdd�de�ZGdd�de
�ZGdd�de�Zeeej<Gdd�de�ZdS)zr
ldap.controls.simple - classes for some very simple LDAP controls

See https://www.python-ldap.org/ for details.
�N)�RequestControl�ResponseControl�LDAPControl�KNOWN_RESPONSE_CONTROLS)�univ)�encoder�decoderc@s"eZdZdZddd�Zdd�ZdS)	�ValueLessRequestControla!
  Base class for controls without a controlValue.
  The presence of the control in a LDAPv3 request changes the server's
  behaviour when processing the request simply based on the controlType.

  controlType
    OID of the request control
  criticality
    criticality request control
  NFcCs||_||_dS�N)�controlType�criticality)�selfrr�r�:/usr/lib64/python3.9/site-packages/ldap/controls/simple.py�__init__sz ValueLessRequestControl.__init__cCsdSr
r�r
rrr�encodeControlValuesz*ValueLessRequestControl.encodeControlValue)NF)�__name__�
__module__�__qualname__�__doc__rrrrrrr	s
r	c@s*eZdZdZd
dd�Zdd�Zdd	�ZdS)�OctetStringIntegerzv
  Base class with controlValue being unsigend integer values

  integerValue
    Integer to be sent as OctetString
  NFcCs||_||_||_dSr
)rr�integerValue)r
rrrrrrr*szOctetStringInteger.__init__cCst�d|j�S)N�!Q)�struct�packrrrrrr/sz%OctetStringInteger.encodeControlValuecCst�d|�d|_dS)Nrr)r�unpackr�r
�encodedControlValuerrr�decodeControlValue2sz%OctetStringInteger.decodeControlValue)NFN�rrrrrrrrrrrr"s
rc@s*eZdZdZd
dd�Zdd�Zdd	�ZdS)�BooleanControlz�
  Base class for simple request controls with boolean control value.

  Constructor argument and class attribute:

  booleanValue
    Boolean (True/False or 1/0) which is the boolean controlValue.
  NFcCs||_||_||_dSr
)rr�booleanValue)r
rrr"rrrr@szBooleanControl.__init__cCstj|jt��d�S�N)Zasn1Spec)r�encoder"r�BooleanrrrrrEsz!BooleanControl.encodeControlValuecCs(tj|t��d�\}}tt|��|_dSr#)r�decoderr%�bool�intr")r
rZdecodedValue�_rrrrHsz!BooleanControl.decodeControlValue)NFFr rrrrr!6s	
r!c@seZdZdZddd�ZdS)�ManageDSAITControlz
  Manage DSA IT Control
  FcCstj|tjdd�dS�NF)r)r	r�ldap�CONTROL_MANAGEDSAIT�r
rrrrrRszManageDSAITControl.__init__N)F�rrrrrrrrrr*Msr*c@seZdZdZddd�ZdS)�RelaxRulesControlz
  Relax Rules Control
  FcCstj|tjdd�dSr+)r	rr,�
CONTROL_RELAXr.rrrr]szRelaxRulesControl.__init__N)Fr/rrrrr0Xsr0c@seZdZdZdd�ZdS)�ProxyAuthzControlz�
  Proxy Authorization Control

  authzId
    string containing the authorization ID indicating the identity
    on behalf which the server should process the request
  cCst�|tj||�dSr
)rrr,ZCONTROL_PROXY_AUTHZ�r
r�authzIdrrrrlszProxyAuthzControl.__init__Nr/rrrrr2csr2c@seZdZdZdZdd�ZdS)�#AuthorizationIdentityRequestControlz:
  Authorization Identity Request and Response Controls
  z2.16.840.1.113730.3.4.16cCst�||j|�dSr
)r	rrr.rrrrvsz,AuthorizationIdentityRequestControl.__init__N)rrrrrrrrrrr5psr5c@seZdZdZdZdd�ZdS)�$AuthorizationIdentityResponseControlz}
  Authorization Identity Request and Response Controls

  Class attributes:

  authzId
    decoded authorization identity
  z2.16.840.1.113730.3.4.15cCs
||_dSr
)r4rrrrr�sz7AuthorizationIdentityResponseControl.decodeControlValueN)rrrrrrrrrrr6zsr6c@seZdZdZddd�ZdS)�GetEffectiveRightsControlz"
  Get Effective Rights Control
  NcCst�|d||�dS)Nz1.3.6.1.4.1.42.2.27.9.5.2)rrr3rrrr�sz"GetEffectiveRightsControl.__init__)Nr/rrrrr7�sr7)rrr,Z
ldap.controlsrrrrZpyasn1.typerZpyasn1.codec.berrrr	rr!r*r-r0r1r2r5r6rr7rrrr�<module>s