o
    ßý°j  ã                   @   sR   d Z ddlmZmZmZ ddlmZ ddlmZ ddd„Z	dd	d
„Z
ddd„ZdS )Ú
é   )ÚNO_ATTRIBUTESÚALL_ATTRIBUTESÚSTRING_TYPES)Úbuild_attribute_selectioné   )Úbuild_controlFc                 C   s@   |st g}n|tkrtg}t|tƒr|g}t|d ƒ}t| ||ƒS )N)r   r   Ú
isinstancer   r   r   )ÚoidÚ
attributesÚcriticalityÚvalue© r   ú‰/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/ldap3/protocol/rfc4527.pyÚ_read_control   s   

r   c                 C   ó   t d| |ƒS )zÊCreate a pre-read control for a request.
    When passed as a control to the controls parameter of an operation, it will
    return the value in `Connection.result` before the operation took place.
    z1.3.6.1.1.13.1©r   ©r   r   r   r   r   Úpre_read_control+   ó   r   c                 C   r   )zÊCreate a post-read control for a request.
    When passed as a control to the controls parameter of an operation, it will
    return the value in `Connection.result` after the operation took place.
    z1.3.6.1.1.13.2r   r   r   r   r   Úpost_read_control3   r   r   N)F)Ú__doc__Ú r   r   r   Úoperation.searchr   Úcontrolsr   r   r   r   r   r   r   r   Ú<module>   s    

