§
    8Ý)c±H  ã                   óè  — d Z ddlmZ ddlmZmZmZmZmZ ddl	m
Z
mZ ddlmZmZmZ ddlmZmZmZ dgZ G d„ d	ej        ¦  «        Z G d
„ dej        ¦  «        Z G d„ dej        ¦  «        Z G d„ dej        ¦  «        Z G d„ de¦  «        Z G d„ dej        ¦  «        Z G d„ dej        ¦  «        Z G d„ de¦  «        Zeeej         <    G d„ dej        ¦  «        Z! G d„ de¦  «        Z"e"ee"j         <    G d„ dej        ¦  «        Z# G d„ dej        ¦  «        Z$ G d „ d!ej%        ¦  «        Z& G d"„ d#ej        ¦  «        Z' G d$„ d%ej(        ¦  «        Z) G d&„ d'¦  «        Z* G d(„ d¦  «        Z+d)S )*zz
ldap.syncrepl - for implementing syncrepl consumer (see RFC 4533)

See https://www.python-ldap.org/ for project details.
é    )ÚUUID)ÚtagÚ	namedtypeÚnamedvalÚunivÚ
constraint)ÚencoderÚdecoder)Ú__version__Ú
__author__Ú__license__)ÚRequestControlÚResponseControlÚKNOWN_RESPONSE_CONTROLSÚSyncreplConsumerc                   ó4   — e Zd ZdZ ej        dd¦  «        ZdS )ÚSyncUUIDz.
    syncUUID ::= OCTET STRING (SIZE(16))
    é   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚValueSizeConstraintÚsubtypeSpec© ó    ú//usr/lib/python3/dist-packages/ldap/syncrepl.pyr   r      s.   € € € € € ðð ð 1�*Ô0°°RÑ8Ô8€K€K€Kr   r   c                   ó   — e Zd ZdZdS )Ú
SyncCookiez%
    syncCookie ::= OCTET STRING
    N)r   r   r   r   r   r   r   r   r      s   € € € € € ðð ð ð r   r   c                   óp   — e Zd ZdZ ej        dd¦  «        Zej        j	         e
j        dd¦  «        z   Z	dS )ÚSyncRequestModez³
           mode ENUMERATED {
               -- 0 unused
               refreshOnly       (1),
               -- 2 reserved
               refreshAndPersist (3)
           },
    )ÚrefreshOnlyé   )ÚrefreshAndPersisté   r#   r%   N©r   r   r   r   r   ÚNamedValuesÚnamedValuesr   Ú
Enumeratedr   r   ÚSingleValueConstraintr   r   r   r!   r!   "   sW   € € € € € ðð ð '�(Ô&ØØ ñô €Kð ”/Ô-Ð0P°
Ô0PÐQRÐTUÑ0VÔ0VÑV€K€K€Kr   r!   c            
       óÌ   — e Zd ZdZ ej         ej        d e¦   «         ¦  «         ej        d e	¦   «         ¦  «         ej
        d ej        d¦  «        ¦  «        ¦  «        ZdS )ÚSyncRequestValuea:  
       syncRequestValue ::= SEQUENCE {
           mode ENUMERATED {
               -- 0 unused
               refreshOnly       (1),
               -- 2 reserved
               refreshAndPersist (3)
           },
           cookie     syncCookie OPTIONAL,
           reloadHint BOOLEAN DEFAULT FALSE
       }
    ÚmodeÚcookieÚ
reloadHintFN)r   r   r   r   r   Ú
NamedTypesÚ	NamedTyper!   ÚOptionalNamedTyper   ÚDefaultedNamedTyper   ÚBooleanÚcomponentTyper   r   r   r,   r,   2   s~   € € € € € ðð ð )�IÔ(Øˆ	Ô˜F O OÑ$5Ô$5Ñ6Ô6Ø#ˆ	Ô# H¨j¨j©l¬lÑ;Ô;Ø$ˆ	Ô$ \°<°4´<ÀÑ3FÔ3FÑGÔGñô €M€M€Mr   r,   c                   ó$   — e Zd ZdZdZd	d„Zd„ ZdS )
ÚSyncRequestControlan  
    The Sync Request Control is an LDAP Control [RFC4511] where the
    controlType is the object identifier 1.3.6.1.4.1.4203.1.9.1.1 and the
    controlValue, an OCTET STRING, contains a BER-encoded
    syncRequestValue.  The criticality field is either TRUE or FALSE.
    [..]
    The Sync Request Control is only applicable to the SearchRequest
    Message.
    z1.3.6.1.4.1.4203.1.9.1.1r#   Nr"   Fc                 ó>   — || _         || _        || _        || _        d S )N)Úcriticalityr.   r-   r/   )Úselfr9   r.   r-   r/   s        r   Ú__init__zSyncRequestControl.__init__R   s#   € Ø&ˆÔØˆŒØˆŒ	Ø$ˆŒˆˆr   c                 ó\  — t          ¦   «         }|                     dt          | j        ¦  «        ¦  «         | j        �(|                     dt          | j        ¦  «        ¦  «         | j        r-|                     dt          j        | j        ¦  «        ¦  «         t          j
        |¦  «        S )Nr-   r.   r/   )r,   ÚsetComponentByNamer!   r-   r.   r   r/   r   r4   r	   Úencode)r:   Úrcvs     r   ÚencodeControlValuez%SyncRequestControl.encodeControlValueX   s’   € ÝÑ Ô ˆØ×Ò˜v¥°t´yÑ'AÔ'AÑBÔBÐBØŒ;Ð"Ø×"Ò" 8­Z¸¼Ñ-DÔ-DÑEÔEÐEØŒ?ð 	PØ×"Ò" <µ´¸d¼oÑ1NÔ1NÑOÔOÐOÝŒ~˜cÑ"Ô"Ð"r   )r#   Nr"   F)r   r   r   r   ÚcontrolTyper;   r@   r   r   r   r7   r7   F   sH   € € € € € ðð ð -€Kð%ð %ð %ð %ð#ð #ð #ð #ð #r   r7   c                   óx   — e Zd ZdZ ej        dddd¦  «        Zej        j	         e
j        dddd	¦  «        z   Z	d
S )ÚSyncStateOpzš
           state ENUMERATED {
               present (0),
               add (1),
               modify (2),
               delete (3)
           },
    )Úpresentr   )Úaddr#   )Úmodifyé   )Údeleter%   r   r#   rG   r%   Nr&   r   r   r   rC   rC   b   sc   € € € € € ðð ð '�(Ô&ØØØØñ	ô €Kð ”/Ô-Ð0P°
Ô0PÐQRÐTUÐWXÐZ[Ñ0\Ô0\Ñ\€K€K€Kr   rC   c            	       óÀ   — e Zd ZdZ ej         ej        d e¦   «         ¦  «         ej        d e¦   «         ¦  «         ej	        d e
¦   «         ¦  «        ¦  «        ZdS )ÚSyncStateValuea  
       syncStateValue ::= SEQUENCE {
           state ENUMERATED {
               present (0),
               add (1),
               modify (2),
               delete (3)
           },
           entryUUID syncUUID,
           cookie    syncCookie OPTIONAL
       }
    ÚstateÚ	entryUUIDr.   N)r   r   r   r   r   r0   r1   rC   r   r2   r   r5   r   r   r   rJ   rJ   t   sv   € € € € € ðð ð )�IÔ(Øˆ	Ô˜G [ [¡]¤]Ñ3Ô3Øˆ	Ô˜K¨¨©¬Ñ4Ô4Ø#ˆ	Ô# H¨j¨j©l¬lÑ;Ô;ñô €M€M€Mr   rJ   c                   ó    — e Zd ZdZdZdZd„ ZdS )ÚSyncStateControlam  
    The Sync State Control is an LDAP Control [RFC4511] where the
    controlType is the object identifier 1.3.6.1.4.1.4203.1.9.1.2 and the
    controlValue, an OCTET STRING, contains a BER-encoded SyncStateValue.
    The criticality is FALSE.
    [..]
    The Sync State Control is only applicable to SearchResultEntry and
    SearchResultReference Messages.
    z1.3.6.1.4.1.4203.1.9.1.2)rD   rE   rF   rH   c                 óö  — t          j        |t          ¦   «         ¬¦  «        }|d                              d¦  «        }t	          t          |d                              d¦  «        ¦  «        ¬¦  «        }|d                              d¦  «        }|�)|                     ¦   «         rt          |¦  «        | _        nd | _        | j	        j
        t          |¦  «                 | _        t          |¦  «        | _        d S )N©Úasn1Specr   rK   rL   ©Úbytesr.   )r
   ÚdecoderJ   ÚgetComponentByNamer   rS   ÚhasValueÚstrr.   Ú	__class__ÚopnamesÚintrK   rL   )r:   ÚencodedControlValueÚdrK   Úuuidr.   s         r   ÚdecodeControlValuez#SyncStateControl.decodeControlValue•   sÈ   € ÝŒNÐ.½Ñ9IÔ9IÐJÑJÔJˆØ�!”×'Ò'¨Ñ0Ô0ˆÝ�%  !¤× 7Ò 7¸Ñ DÔ DÑEÔEÐFÑFÔFˆØ�1”×(Ò(¨Ñ2Ô2ˆØÐ &§/¢/Ñ"3Ô"3ÐÝ˜f™+œ+ˆDŒKˆKàˆDŒKØ”^Ô+­C°©J¬JÔ7ˆŒ
Ý˜T™œˆŒˆˆr   N)r   r   r   r   rA   rY   r^   r   r   r   rN   rN   ˆ   s9   € € € € € ðð ð -€KØ4€Gð
#ð 
#ð 
#ð 
#ð 
#r   rN   c            	       óœ   — e Zd ZdZ ej         ej        d e¦   «         ¦  «         ej        d e	j
        d¦  «        ¦  «        ¦  «        ZdS )ÚSyncDoneValuez“
       syncDoneValue ::= SEQUENCE {
           cookie          syncCookie OPTIONAL,
           refreshDeletes  BOOLEAN DEFAULT FALSE
       }
    r.   ÚrefreshDeletesFN©r   r   r   r   r   r0   r2   r   r3   r   r4   r5   r   r   r   r`   r`   ¤   se   € € € € € ðð ð )�IÔ(Ø#ˆ	Ô# H¨j¨j©l¬lÑ;Ô;Ø$ˆ	Ô$Ð%5°|°t´|ÀEÑ7JÔ7JÑKÔKñô €M€M€Mr   r`   c                   ó   — e Zd ZdZdZd„ ZdS )ÚSyncDoneControlaT  
    The Sync Done Control is an LDAP Control [RFC4511] where the
    controlType is the object identifier 1.3.6.1.4.1.4203.1.9.1.3 and the
    controlValue contains a BER-encoded syncDoneValue.  The criticality
    is FALSE (and hence absent).
    [..]
    The Sync Done Control is only applicable to the SearchResultDone
    Message.
    z1.3.6.1.4.1.4203.1.9.1.3c                 óx  — t          j        |t          ¦   «         ¬¦  «        }|d                              d¦  «        }|                     ¦   «         rt          |¦  «        | _        nd | _        |d                              d¦  «        }|                     ¦   «         rt          |¦  «        | _        d S d | _        d S )NrP   r   r.   ra   )	r
   rT   r`   rU   rV   rW   r.   Úboolra   )r:   r[   r\   r.   Úrefresh_deletess        r   r^   z"SyncDoneControl.decodeControlValue½   sª   € ÝŒNÐ.½¹¼ÐIÑIÔIˆØ�1”×(Ò(¨Ñ2Ô2ˆØ�?Š?ÑÔð 	Ý˜f™+œ+ˆDŒKˆKàˆDŒKØ˜Aœ$×1Ò1Ð2BÑCÔCˆØ×#Ò#Ñ%Ô%ð 	'Ý"& Ñ"7Ô"7ˆDÔÐÐà"&ˆDÔÐÐr   N)r   r   r   r   rA   r^   r   r   r   rd   rd   ±   s4   € € € € € ðð ð -€Kð'ð 'ð 'ð 'ð 'r   rd   c            	       óœ   — e Zd ZdZ ej         ej        d e¦   «         ¦  «         ej        d e	j
        d¦  «        ¦  «        ¦  «        ZdS )ÚRefreshDeletez¢
           refreshDelete  [1] SEQUENCE {
               cookie         syncCookie OPTIONAL,
               refreshDone    BOOLEAN DEFAULT TRUE
           },
    r.   ÚrefreshDoneTNrb   r   r   r   ri   ri   Í   ód   € € € € € ðð ð )�IÔ(Ø#ˆ	Ô# H¨j¨j©l¬lÑ;Ô;Ø$ˆ	Ô$ ]°L°D´LÀÑ4FÔ4FÑGÔGñô €M€M€Mr   ri   c            	       óœ   — e Zd ZdZ ej         ej        d e¦   «         ¦  «         ej        d e	j
        d¦  «        ¦  «        ¦  «        ZdS )ÚRefreshPresentz¢
           refreshPresent [2] SEQUENCE {
               cookie         syncCookie OPTIONAL,
               refreshDone    BOOLEAN DEFAULT TRUE
           },
    r.   rj   TNrb   r   r   r   rm   rm   Ú   rk   r   rm   c                   ó&   — e Zd ZdZ e¦   «         ZdS )Ú	SyncUUIDsz(
    syncUUIDs      SET OF syncUUID
    N)r   r   r   r   r   r5   r   r   r   ro   ro   ç   s%   € € € € € ðð ð �H‘J”J€M€M€Mr   ro   c            	       óÌ   — e Zd ZdZ ej         ej        d e¦   «         ¦  «         ej        d e	j
        d¦  «        ¦  «         ej        d e¦   «         ¦  «        ¦  «        ZdS )Ú	SyncIdSetz³
     syncIdSet      [3] SEQUENCE {
         cookie         syncCookie OPTIONAL,
         refreshDeletes BOOLEAN DEFAULT FALSE,
         syncUUIDs      SET OF syncUUID
     }
    r.   ra   FÚ	syncUUIDsN)r   r   r   r   r   r0   r2   r   r3   r   r4   r1   ro   r5   r   r   r   rq   rq   î   s}   € € € € € ðð ð )�IÔ(Ø#ˆ	Ô# H¨j¨j©l¬lÑ;Ô;Ø$ˆ	Ô$Ð%5°|°t´|ÀEÑ7JÔ7JÑKÔKØˆ	Ô˜K¨¨©¬Ñ5Ô5ñô €M€M€Mr   rq   c                   ó`  — e Zd ZdZ ej         ej        d e¦   «                               e	j
        e	j        e	j        d¦  «        ¬¦  «        ¦  «         ej        d e¦   «                               e	j
        e	j        e	j        d¦  «        ¬¦  «        ¦  «         ej        d e¦   «                               e	j
        e	j        e	j        d¦  «        ¬¦  «        ¦  «         ej        d	 e¦   «                               e	j
        e	j        e	j        d
¦  «        ¬¦  «        ¦  «        ¦  «        ZdS )ÚSyncInfoValuea`  
       syncInfoValue ::= CHOICE {
           newcookie      [0] syncCookie,
           refreshDelete  [1] SEQUENCE {
               cookie         syncCookie OPTIONAL,
               refreshDone    BOOLEAN DEFAULT TRUE
           },
           refreshPresent [2] SEQUENCE {
               cookie         syncCookie OPTIONAL,
               refreshDone    BOOLEAN DEFAULT TRUE
           },
           syncIdSet      [3] SEQUENCE {
               cookie         syncCookie OPTIONAL,
               refreshDeletes BOOLEAN DEFAULT FALSE,
               syncUUIDs      SET OF syncUUID
           }
       }
    Ú	newcookier   )ÚimplicitTagÚrefreshDeleter#   ÚrefreshPresentrG   Ú	syncIdSetr%   N)r   r   r   r   r   r0   r1   r   Úsubtyper   ÚTagÚtagClassContextÚtagFormatSimpleri   rm   rq   r5   r   r   r   rt   rt   ý   sf  € € € € € ðð ð$ )�IÔ(Øˆ	ÔØØˆJ‰LŒL× Ò Ø#˜CœG CÔ$7¸Ô9LÈaÑPÔPð !ñ ô ñ	
ô 	
ð 	ˆ	ÔØØˆM‰OŒO×#Ò#Ø#˜CœG CÔ$7¸Ô9LÈaÑPÔPð $ñ ô ñ	
ô 	
ð 	ˆ	ÔØØˆNÑÔ×$Ò$Ø#˜CœG CÔ$7¸Ô9LÈaÑPÔPð %ñ ô ñ	
ô 	
ð 	ˆ	ÔØØˆI‰KŒK×ÒØ#˜CœG CÔ$7¸Ô9LÈaÑPÔPð  ñ ô ñ	
ô 	
ñ'ô €M€M€Mr   rt   c                   ó   — e Zd ZdZdZd„ ZdS )ÚSyncInfoMessagea	  
    The Sync Info Message is an LDAP Intermediate Response Message
    [RFC4511] where responseName is the object identifier
    1.3.6.1.4.1.4203.1.9.1.4 and responseValue contains a BER-encoded
    syncInfoValue.  The criticality is FALSE (and hence absent).
    z1.3.6.1.4.1.4203.1.9.1.4c                 óÜ  — t          j        |t          ¦   «         ¬¦  «        }d | _        d | _        d | _        d | _        |d                              ¦   «         }|d                              ¦   «         }|��t| 	                    ¦   «         �ra|dk    rt          |¦  «        | _        d S i }|                     d¦  «        }| 	                    ¦   «         rt          |¦  «        |d<   |                     d¦  «        r&t          |                     d¦  «        ¦  «        |d<   n¸|dk    r²g }|                     d¦  «        }t          t          |¦  «        ¦  «        D ]T}	t!          t#          |                     |	¦  «        ¦  «        ¬	¦  «        }
|                     t          |
¦  «        ¦  «         ŒU||d<   t          |                     d
¦  «        ¦  «        |d
<   t)          | ||¦  «         d S d S d S )NrP   r   ru   r.   Úrefreshrj   ry   rr   rR   ra   )r
   rT   rt   ru   rw   rx   ry   ÚgetNameÚgetComponentrV   rW   rU   Ú
startswithrf   ÚrangeÚlenr   rS   ÚgetComponentByPositionÚappendÚsetattr)r:   ÚencodedMessager\   ÚattrÚcompÚvalr.   ÚuuidsÚidsÚir]   s              r   r;   zSyncInfoMessage.__init__5  sÒ  € ÝŒN˜>µM±O´OÐDÑDÔDˆØˆŒØ!ˆÔØ"ˆÔØˆŒð
 �Œt�|Š|‰~Œ~ˆØ�Œt× Ò Ñ"Ô"ˆàÑ §¢¡¤ÑØ�{Ò"Ð"Ý!$ T¡¤�”Ø�àˆCà×,Ò,¨XÑ6Ô6ˆFØ�ŠÑ Ô ð ,Ý # F¡¤��H‘à�Š˜yÑ)Ô)ð 	XÝ%)¨$×*AÒ*AÀ-Ñ*PÔ*PÑ%QÔ%Q��MÑ"Ð"Ø˜Ò$Ð$Ø�Ø×-Ò-¨kÑ:Ô:�Ý�s 3™xœx™œð ,ð ,�AÝ¥e¨C×,FÒ,FÀqÑ,IÔ,IÑ&JÔ&JÐKÑKÔK�DØ—L’L¥ T¡¤Ñ+Ô+Ð+Ð+Ø#(��KÑ Ý(,¨T×-DÒ-DÐEUÑ-VÔ-VÑ(WÔ(W�Ð$Ñ%å�D˜$ Ñ$Ô$Ð$Ð$Ð$ð- ÐÐÐr   N)r   r   r   r   ÚresponseNamer;   r   r   r   r   r   ,  s4   € € € € € ðð ð .€Lð#%ð #%ð #%ð #%ð #%r   r   c                   óH   — e Zd ZdZdd„Zdd„Zd„ Zd	„ Zdd„Zd„ Z	d„ Z
d„ ZdS )r   z;
    SyncreplConsumer - LDAP syncrepl consumer object.
    r"   Nc                 ó´   — |€|                       ¦   «         }t          ||¬¦  «        }d|v r|dxx         |gz  cc<   n|g|d<   d| _         | j        ||fi |¤ŽS )a¬  
        Starts syncrepl search operation.

        base, scope, and search_args are passed along to
        self.search_ext unmodified (aside from adding a Sync
        Request control to any serverctrls provided).

        mode provides syncrepl mode. Can be 'refreshOnly'
        to finish after synchronization, or
        'refreshAndPersist' to persist (continue to
        receive updates) after synchronization.

        cookie: an opaque value representing the replication
        state of the client.  Subclasses should override
        the syncrepl_set_cookie() and syncrepl_get_cookie()
        methods to store the cookie appropriately, rather than
        passing it.

        Only a single syncrepl search may be active on a SyncreplConsumer
        object.  Multiple concurrent syncrepl searches require multiple
        separate SyncreplConsumer objects and thus multiple connections
        (LDAPObject instances).
        N)r.   r-   ÚserverctrlsF)Úsyncrepl_get_cookier7   Ú_SyncreplConsumer__refreshDoneÚ
search_ext)r:   ÚbaseÚscoper-   r.   Úsearch_argsÚsyncreqs          r   Úsyncrepl_searchz SyncreplConsumer.syncrepl_search`  sˆ   € ð0 ˆ>Ø×-Ò-Ñ/Ô/ˆFå$¨F¸Ð>Ñ>Ô>ˆà˜KÐ'Ð'Ø˜Ð&Ð&Ô&¨7¨)Ñ3Ð&Ð&Ñ&Ð&à*1¨ˆK˜Ñ&à"ˆÔØˆtŒ˜t UÐ:Ð:¨kÐ:Ð:Ð:r   éÿÿÿÿr   c                 ó.  — 	 |                       ||ddd¬¦  «        \  }}}}}}	|dk    rU|D ]P}
|
j        j        dk    rŒ|                      d|
j        ¬¦  «         |
j        �|                      |
j        ¦  «         ŒQd	S |d
k    rÒ|D ]Í}|\  }}}|D ]Â}
|
j        j        dk    rŒ|
j        dk    r|                      |
j        g¦  «         ng|
j        dk    r|  	                    |
j        g¦  «         n@|  
                    |||
j        ¦  «         | j        d	u r|                      |
j        g¦  «         |
j        �|                      |
j        ¦  «          ŒÎ�n·|dk    �r°|D �]¬}|\  }}}|t          j        k    rŒt          |¦  «        }|j        �|                      |j        ¦  «         ŒK|j        �i|                      dd	¬¦  «         d|j        v r |                      |j        d         ¦  «         |j        d         rd| _        |                      ¦   «          Œ»|j        �j|                      dd¬¦  «         d|j        v r |                      |j        d         ¦  «         |j        d         rd| _        |                      ¦   «          �Œ,|j        �y|j        d         du r!|  	                    |j        d         ¦  «         n |                      |j        d         ¦  «         d|j        v r |                      |j        d         ¦  «         �Œ®|dk    rdS �Œ)a•  
        polls for and processes responses to the syncrepl_search() operation.
        Returns False when operation finishes, True if it is in progress, or
        raises an exception on error.

        If timeout is specified, raises ldap.TIMEOUT in the event of a timeout.

        If all is set to a nonzero value, poll() will return only when finished
        or when an exception is raised.

        Tr#   r   )ÚmsgidÚtimeoutÚadd_intermediatesÚ	add_ctrlsÚallée   rd   N)ra   Féd   rN   rD   rH   éy   r.   rj   ra   rr   )Úresult4rX   r   Úsyncrepl_presentra   r.   Úsyncrepl_set_cookierK   rL   Úsyncrepl_deleteÚsyncrepl_entryr–   r   r‘   ru   rx   Úsyncrepl_refreshdonerw   ry   )r:   rŸ   r    r£   ÚtypeÚmsgÚmidÚctrlsÚnÚvÚcÚmÚdnÚattrsÚrnameÚrespÚsims                    r   Úsyncrepl_pollzSyncreplConsumer.syncrepl_poll…  s‘  € ðI	Ø*.¯,ª,ØØØ"#ØØð +7ñ +ô +Ñ'ˆD�#�s˜E 1 að �sŠ{ˆ{ð ð ;ð ;�AØ”{Ô+Ð/@Ò@Ð@Ø Ø×)Ò)¨$¸qÔ?OÐ)ÑPÔPÐPØ”xÐ+Ø×0Ò0°´Ñ:Ô:Ð:øà�uà˜’�àð ð �AØ'(Ñ$�B˜˜uØ"ð ð ˜Øœ;Ô/Ð3EÒEÐEØ$Øœ7 iÒ/Ð/Ø ×1Ò1°1´;°-Ñ@Ô@Ð@Ð@ØœW¨Ò0Ð0Ø ×0Ò0°!´+°Ñ?Ô?Ð?Ð?à ×/Ò/°°E¸1¼;ÑGÔGÐGØ#Ô1°UÐ:Ð:Ø $× 5Ò 5°q´{°mÑ DÔ DÐ DØœ8Ð/Ø ×4Ò4°Q´XÑ>Ô>Ð>Øøñð" ˜’‘àð Nñ N�AØ)*Ñ&�E˜4 Ø¥Ô <Ò<Ð<Ø Ý)¨$Ñ/Ô/�CØ”}Ð0Ø×0Ò0°´Ñ?Ô?Ð?Ð?ØÔ+Ð7Ø×-Ò-¨dÀ5Ð-ÑIÔIÐIØ# sÔ'9Ð9Ð9Ø ×4Ò4°SÔ5GÈÔ5QÑRÔRÐRØÔ-¨mÔ<ð 8Ø15˜DÔ.Ø ×5Ò5Ñ7Ô7Ð7øØÔ*Ð6Ø×-Ò-¨dÀ4Ð-ÑHÔHÐHØ# sÔ'8Ð8Ð8Ø ×4Ò4°SÔ5FÀxÔ5PÑQÔQÐQØÔ,¨]Ô;ð 8Ø15˜DÔ.Ø ×5Ò5Ñ7Ô7Ð7ùØœÐ2Øœ=Ð)9Ô:¸dÐBÐBØ ×0Ò0°´¸{Ô1KÑLÔLÐLÐLà ×1Ò1°#´-ÀÔ2LÑMÔMÐMØ# s¤}Ð4Ð4Ø ×4Ò4°S´]À8Ô5LÑMÔMÐMùà�aŠxˆxØ�tñSI	r   c                 ó   — dS )zY
        Called by syncrepl_poll() to store a new cookie provided by the server.
        Nr   )r:   r.   s     r   r©   z$SyncreplConsumer.syncrepl_set_cookieß  ó	   € ð 	ˆr   c                 ó   — dS )zd
        Called by syncrepl_search() to retrieve the cookie stored by syncrepl_set_cookie()
        Nr   ©r:   s    r   r•   z$SyncreplConsumer.syncrepl_get_cookieå  r¼   r   Fc                 ó   — dS )aF  
        Called by syncrepl_poll() whenever entry UUIDs are presented to the client.
        syncrepl_present() is given a list of entry UUIDs (uuids) and a flag
        (refreshDeletes) which indicates whether the server explicitly deleted
        non-present entries during the refresh operation.

        If called with a list of uuids, the syncrepl_present() implementation
        should record those uuids as present in the directory.

        If called with uuids set to None and refreshDeletes set to False,
        syncrepl_present() should delete all non-present entries from the local
        mirror, and reset the list of recorded uuids.

        If called with uuids set to None and refreshDeletes set to True,
        syncrepl_present() should reset the list of recorded uuids, without
        deleting any entries.
        Nr   )r:   rŽ   ra   s      r   r¨   z!SyncreplConsumer.syncrepl_presentë  s	   € ð$ 	ˆr   c                 ó   — dS )zœ
        Called by syncrepl_poll() to delete entries. A list
        of UUIDs of the entries to be deleted is given in the
        uuids parameter.
        Nr   )r:   rŽ   s     r   rª   z SyncreplConsumer.syncrepl_deleteÿ  s	   € ð 	ˆr   c                 ó   — dS )zÿ
        Called by syncrepl_poll() for any added or modified entries.

        The provided uuid is used to identify the provided entry in
        any future modification (including dn modification), deletion,
        and presentation operations.
        Nr   )r:   rµ   r¶   r]   s       r   r«   zSyncreplConsumer.syncrepl_entry  s	   € ð 	ˆr   c                 ó   — dS )z¬
        Called by syncrepl_poll() between refresh and persist phase.

        It indicates that initial synchronization is done and persist phase
        follows.
        Nr   r¾   s    r   r¬   z%SyncreplConsumer.syncrepl_refreshdone  s	   € ð 	ˆr   )r"   N)r�   Nr   )F)r   r   r   r   rœ   rº   r©   r•   r¨   rª   r«   r¬   r   r   r   r   r   [  s«   € € € € € ðð ð#;ð #;ð #;ð #;ðJUð Uð Uð Uðtð ð ðð ð ðð ð ð ð(ð ð ðð ð ðð ð ð ð r   N),r   r]   r   Úpyasn1.typer   r   r   r   r   Úpyasn1.codec.berr	   r
   Úldap.pkginfor   r   r   Úldap.controlsr   r   r   Ú__all__ÚOctetStringr   r   r)   r!   ÚSequencer,   r7   rC   rJ   rN   rA   r`   rd   ri   rm   ÚSetOfro   rq   ÚChoicert   r   r   r   r   r   ú<module>rÌ      sÙ  ððð ð Ð Ð Ð Ð Ð ð CÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BØ -Ð -Ð -Ð -Ð -Ð -Ð -Ð -à =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ø RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ Rð ð€ð
9ð 9ð 9ð 9ð 9ˆtÔñ 9ô 9ð 9ðð ð ð ð �Ô!ñ ô ð ðWð Wð Wð Wð W�d”oñ Wô Wð Wð ð ð ð ð �t”}ñ ô ð ð(#ð #ð #ð #ð #˜ñ #ô #ð #ð8]ð ]ð ]ð ]ð ]�$”/ñ ]ô ]ð ]ð$ð ð ð ð �T”]ñ ô ð ð(#ð #ð #ð #ð #�ñ #ô #ð #ð2 9IÐ Ð(Ô4Ñ 5ð
ð 
ð 
ð 
ð 
�D”Mñ 
ô 
ð 
ð'ð 'ð 'ð 'ð '�oñ 'ô 'ð 'ð2 8GÐ ˜Ô3Ñ 4ð
ð 
ð 
ð 
ð 
�D”Mñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
�T”]ñ 
ô 
ð 
ðð ð ð ð �”
ñ ô ð ðð ð ð ð �”ñ ô ð ð,ð ,ð ,ð ,ð ,�D”Kñ ,ô ,ð ,ð^,%ð ,%ð ,%ð ,%ð ,%ñ ,%ô ,%ð ,%ð^}ð }ð }ð }ð }ñ }ô }ð }ð }ð }r   