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__/vlv.cpython-39.pyc
a

�.d��@s�dZddgZddlZddlmZddlmZmZmZm	Z	ddl
mZmZm
Z
mZmZddlmZmZGd	d
�d
ej�ZGdd�dej�ZGd
d�dej�ZGdd�de�Zeeej<Gdd�dej�ZGdd�dej�ZGdd�de�Zeeej<dS)z�
ldap.controls.vlv - classes for Virtual List View
(see draft-ietf-ldapext-ldapv3-vlv)

See https://www.python-ldap.org/ for project details.
�VLVRequestControl�VLVResponseControl�N)�
LDAPObject)�RequestControl�ResponseControl�KNOWN_RESPONSE_CONTROLS�DecodeControlTuples)�univ�	namedtype�tag�namedval�
constraint)�encoder�decoderc@sLeZdZejj�e�ej	ej
d��Ze�e�
de���e�
de����ZdS)�ByOffsetTyper�offset�contentCountN)�__name__�
__module__�__qualname__r	�SequenceZtagSetZ
tagImplicitlyr�Tag�tagClassContext�tagFormatSimpler
�
NamedTypes�	NamedType�Integer�
componentType�rr�7/usr/lib64/python3.9/site-packages/ldap/controls/vlv.pyrs��rc@sDeZdZe�e�de��e�de��j	e
�e
je
j
d�d���ZdS)�
TargetType�byOffset�greaterThanOrEqual�)ZimplicitTagN)rrrr
rrrr	�OctetStringZsubtyperrrrrrrrrr s���r c
@sJeZdZe�e�de���e�de���e�de��e�	de�
���ZdS)�VirtualListViewRequestType�beforeCount�
afterCount�target�	contextIDN)rrrr
rrr	rr �OptionalNamedTyper$rrrrrr%&s�r%c@s"eZdZdZd	dd�Zdd�ZdS)
rz2.16.840.1.113730.3.4.9FrNcCsXt�||j|�|dur |dus0|s0Jtd���||_||_||_||_||_||_	dS)NzSoffset and content_count must be set together or greater_than_or_equal must be used)
r�__init__�controlType�
ValueError�before_count�after_countr�
content_count�greater_than_or_equal�
context_id)�self�criticalityr.r/rr0r1r2rrrr+1s
���zVLVRequestControl.__init__cCs�t�}|�d|j�|�d|j�|jdurl|jdurlt�}|�d|j�|�d|j�t�}|�d|�n |jr�t�}|�d|j�nt	�|�d|�t
�|�S)Nr&r'rrr!r"r()r%ZsetComponentByNamer.r/rr0rr r1�NotImplementedErrorr�encode)r3�pZ	by_offsetr(rrr�encodeControlValueHs"�z$VLVRequestControl.encodeControlValue)FrrNNNN)rrrr,r+r8rrrrr.s�
c@s(eZdZe�ddddddddd	d
�
ZdS)�VirtualListViewResultType)�successr)ZoperationsErrorr#)Z
protocolError�)ZunwillingToPerform�5)ZinsufficientAccessRights�2)ZadminLimitExceeded�)ZinnapropriateMatching�)ZsortControlMissing�<)ZoffsetRangeError�=)�other�PN)rrrrZNamedValuesZnamedValuesrrrrr9^s�r9c
@sJeZdZe�e�de���e�de���e�de��e�	de�
���ZdS)�VirtualListViewResponseType�targetPositionr�virtualListViewResultr)N)rrrr
rrr	rr9r*r$rrrrrrDms��rDc@s"eZdZdZddd�Zdd�ZdS)	rz2.16.840.1.113730.3.4.10FcCst�||j|�dS)N)rr+r,)r3r4rrrr+yszVLVResponseControl.__init__cCs�tj|t�d�\}}|r Jd��t|�d��|_t|�d��|_|�d�}t|�|_|�d�}|��rrt	|�|_
nd|_
|j|_|j|_|j|_
|j
|_dS)N)Zasn1Speczall data could not be decodedrErrFr))r�decoderD�intZgetComponentByNamerErrFZhasValue�strr)Ztarget_positionr0�resultr2)r3Zencodedr7�restZvirtual_list_view_resultr2rrr�decodeControlValue|s


z%VLVResponseControl.decodeControlValueN)F)rrrr,r+rLrrrrrvs
)�__doc__�__all__ZldapZldap.ldapobjectrZ
ldap.controlsrrrrZpyasn1.typer	r
rrr
Zpyasn1.codec.berrrrrZChoicer r%rr,Z
Enumeratedr9rDrrrrr�<module>s"�-