
    =OOf                     L    d Z ddlmZmZmZ ddlmZ ddlmZ d
dZ	d
dZ
d
dZy	)
   )NO_ATTRIBUTESALL_ATTRIBUTESSTRING_TYPES)build_attribute_selection   )build_controlc                     |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values       W/var/www/premiumrankchecker/venv/lib/python3.12/site-packages/ldap3/protocol/rfc4527.py_read_controlr      sH    #_
	~	%$%
*l+ \
%j$7Ek511    c                     t        d| |      S )zCreate 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   s     r   pre_read_controlr   +       
 ):{CCr   c                     t        d| |      S )zCreate 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   s     r   post_read_controlr   3   r   r   N)F)__doc__ r   r   r   operation.searchr   controlsr	   r   r   r    r   r   <module>r      s)   2 ; : 8 #	2DDr   