o
    ßý°jA  ã                   @   sú  d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 ddl4Z4G dd„ de5ƒZ6G dd	„ d	e6ƒZ7G d
d„ de7ƒZ8G dd„ de7ƒZ9G dd„ de7ƒZ:G dd„ de7ƒZ;G dd„ de7ƒZ<G dd„ de7ƒZ=G dd„ de7ƒZ>G dd„ de7ƒZ?G dd„ de7ƒZ@G dd„ de7ƒZAG dd„ de7ƒZBG d d!„ d!e7ƒZCG d"d#„ d#e7ƒZDG d$d%„ d%e7ƒZEG d&d'„ d'e7ƒZFG d(d)„ d)e7ƒZGG d*d+„ d+e7ƒZHG d,d-„ d-e7ƒZIG d.d/„ d/e7ƒZJG d0d1„ d1e7ƒZKG d2d3„ d3e7ƒZLG d4d5„ d5e7ƒZMG d6d7„ d7e7ƒZNG d8d9„ d9e7ƒZOG d:d;„ d;e7ƒZPG d<d=„ d=e7ƒZQG d>d?„ d?e7ƒZRG d@dA„ dAe7ƒZSG dBdC„ dCe7ƒZTG dDdE„ dEe7ƒZUG dFdG„ dGe7ƒZVG dHdI„ dIe7ƒZWG dJdK„ dKe7ƒZXG dLdM„ dMe7ƒZYG dNdO„ dOe7ƒZZG dPdQ„ dQe7ƒZ[G dRdS„ dSe7ƒZ\G dTdU„ dUe7ƒZ]G dVdW„ dWe7ƒZ^G dXdY„ dYe7ƒZ_G dZd[„ d[e7ƒZ`G d\d]„ d]e7ƒZaG d^d_„ d_e7ƒZbG d`da„ dae7ƒZcG dbdc„ dce7ƒZdG ddde„ dee7ƒZeG dfdg„ dge7ƒZfG dhdi„ die7ƒZgi ee8“ee9“ee:“ee;“ee<“ee=“e	e>“e
e?“ee@“eeA“eeB“eeC“eeD“eeE“eeF“eeG“eeH“i eeI“eeJ“eeK“eeL“e3eM“eeN“e#eO“e(eP“e*eQ“e,eR“eeS“e"eT“e$eU“e+eV“e2eW“eeX“e!eY“¥e)eZe-e[e1e\ee]e e^e'e_e.e`eeaeebe%ece&ede/eee0efeegi¥ZhG djdk„ dke6ƒZiG dldm„ dmeiƒZjG dndo„ doejƒZkG dpdq„ dqejƒZlG drds„ dsejƒZmG dtdu„ duejƒZnG dvdw„ dwejeoƒZpG dxdy„ dyejƒZqG dzd{„ d{eieresƒZtG d|d}„ d}eieuƒZvG d~d„ deieuewƒZxG d€d�„ d�eiƒZyG d‚dƒ„ dƒeyesƒZzG d„d…„ d…eiƒZ{G d†d‡„ d‡eieoƒZ|G dˆd‰„ d‰eiƒZ}G dŠd‹„ d‹eieuƒZ~G dŒd�„ d�eiƒZG dŽd�„ d�eiƒZ€G d�d‘„ d‘eiƒZ�G d’d“„ d“eiƒZ‚G d”d•„ d•eiƒZƒG d–d—„ d—eieuƒZ„G d˜d™„ d™eiƒZ…G dšd›„ d›eiƒZ†G dœd�„ d�eiƒZ‡G dždŸ„ dŸeiƒZˆG d d¡„ d¡eiƒZ‰G d¢d£„ d£eiƒZŠG d¤d¥„ d¥eiƒZ‹G d¦d§„ d§eiƒZŒG d¨d©„ d©eiƒZ�G dªd«„ d«eieuƒZŽG d¬d­„ d­eieuƒZ�G d®d¯„ d¯eieuƒZ�G d°d±„ d±eieuƒZ‘G d²d³„ d³eieuƒZ’G d´dµ„ dµeiƒZ“G d¶d·„ d·eiƒZ”G d¸d¹„ d¹eiƒZ•G dºd»„ d»eiƒZ–G d¼d½„ d½eiƒZ—G d¾d¿„ d¿eiƒZ˜G dÀdÁ„ dÁeiƒZ™G dÂdÃ„ dÃeiƒZšG dÄdÅ„ dÅeiƒZ›G dÆdÇ„ dÇeiƒZœG dÈdÉ„ dÉeiƒZ�G dÊdË„ dËe�ƒZžG dÌdÍ„ dÍe�ƒZŸG dÎdÏ„ dÏe�e4j ƒZ¡G dÐdÑ„ dÑe�e4j ƒZ¢G dÒdÓ„ dÓe�ƒZ£G dÔdÕ„ dÕe�ƒZ¤G dÖd×„ d×e�ƒZ¥G dØdÙ„ dÙe�ƒZ¦G dÚdÛ„ dÛeiƒZ§G dÜdÝ„ dÝeiƒZ¨G dÞdß„ dßeiƒZ©dàdá„ Zªdâdã„ Z«dS )äÚ
é    )Úsepé   )0ÚRESULT_OPERATIONS_ERRORÚRESULT_PROTOCOL_ERRORÚRESULT_TIME_LIMIT_EXCEEDEDÚRESULT_SIZE_LIMIT_EXCEEDEDÚRESULT_STRONGER_AUTH_REQUIREDÚRESULT_REFERRALÚRESULT_ADMIN_LIMIT_EXCEEDEDÚ%RESULT_UNAVAILABLE_CRITICAL_EXTENSIONÚ RESULT_AUTH_METHOD_NOT_SUPPORTEDÚRESULT_UNDEFINED_ATTRIBUTE_TYPEÚRESULT_NO_SUCH_ATTRIBUTEÚRESULT_SASL_BIND_IN_PROGRESSÚRESULT_CONFIDENTIALITY_REQUIREDÚRESULT_INAPPROPRIATE_MATCHINGÚRESULT_CONSTRAINT_VIOLATIONÚ RESULT_ATTRIBUTE_OR_VALUE_EXISTSÚRESULT_INVALID_ATTRIBUTE_SYNTAXÚRESULT_NO_SUCH_OBJECTÚRESULT_ALIAS_PROBLEMÚRESULT_INVALID_DN_SYNTAXÚ"RESULT_ALIAS_DEREFERENCING_PROBLEMÚRESULT_INVALID_CREDENTIALSÚRESULT_LOOP_DETECTEDÚRESULT_ENTRY_ALREADY_EXISTSÚRESULT_LCUP_SECURITY_VIOLATIONÚRESULT_CANCELEDÚRESULT_E_SYNC_REFRESH_REQUIREDÚRESULT_NO_SUCH_OPERATIONÚRESULT_LCUP_INVALID_DATAÚ#RESULT_OBJECT_CLASS_MODS_PROHIBITEDÚRESULT_NAMING_VIOLATIONÚ!RESULT_INSUFFICIENT_ACCESS_RIGHTSÚRESULT_OBJECT_CLASS_VIOLATIONÚRESULT_TOO_LATEÚRESULT_CANNOT_CANCELÚRESULT_LCUP_UNSUPPORTED_SCHEMEÚRESULT_BUSYÚRESULT_AFFECT_MULTIPLE_DSASÚRESULT_UNAVAILABLEÚRESULT_NOT_ALLOWED_ON_NON_LEAFÚRESULT_UNWILLING_TO_PERFORMÚRESULT_OTHERÚRESULT_LCUP_RELOAD_REQUIREDÚRESULT_ASSERTION_FAILEDÚRESULT_AUTHORIZATION_DENIEDÚRESULT_LCUP_RESOURCES_EXHAUSTEDÚRESULT_NOT_ALLOWED_ON_RDNÚ#RESULT_INAPPROPRIATE_AUTHENTICATIONNc                   @   ó   e Zd ZdS )ÚLDAPExceptionN©Ú__name__Ú
__module__Ú__qualname__© r;   r;   úˆ/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/ldap3/core/exceptions.pyr6   .   ó    r6   c                       s8   e Zd Zd
‡ fdd„	Zd
dd„Zdd„ Zdd	„ Z‡  ZS )ÚLDAPOperationResultNc                    sh   | t u r*|r*|tv r*tt t| ƒ t| ¡}||_||_||_||_||_||_	|S tt | ƒ | ¡}|S ©N)
r>   Úexception_tableÚsuperÚ__new__ÚresultÚdescriptionÚdnÚmessageÚtypeÚresponse)ÚclsrC   rD   rE   rF   Úresponse_typerH   Úexc©Ú	__class__r;   r<   rB   3   s   ÿÿzLDAPOperationResult.__new__c                 C   s(   || _ || _|| _|| _|| _|| _d S r?   )rC   rD   rE   rF   rG   rH   )ÚselfrC   rD   rE   rF   rJ   rH   r;   r;   r<   Ú__init__A   s   
zLDAPOperationResult.__init__c                    sz   | j j| jrt| jƒnd | jr| jnd | jr| jnd | jr | jnd | jr'| jnd | jr.| jnd g‰ d 	‡ fdd„ˆ D ƒ¡S )Nz - c                    s   g | ]
}ˆ d urt |ƒ‘qS r?   )Ústr)Ú.0Úitem©Úsr;   r<   Ú
<listcomp>R   s    z/LDAPOperationResult.__str__.<locals>.<listcomp>)
rM   r8   rC   rP   rD   rE   rF   rG   rH   Újoin©rN   r;   rS   r<   Ú__str__I   s   úzLDAPOperationResult.__str__c                 C   s   |   ¡ S r?   )rX   rW   r;   r;   r<   Ú__repr__T   s   zLDAPOperationResult.__repr__)NNNNNN)r8   r9   r:   rB   rO   rX   rY   Ú__classcell__r;   r;   rL   r<   r>   2   s
    
r>   c                   @   r5   )ÚLDAPOperationsErrorResultNr7   r;   r;   r;   r<   r[   X   r=   r[   c                   @   r5   )ÚLDAPProtocolErrorResultNr7   r;   r;   r;   r<   r\   \   r=   r\   c                   @   r5   )ÚLDAPTimeLimitExceededResultNr7   r;   r;   r;   r<   r]   `   r=   r]   c                   @   r5   )ÚLDAPSizeLimitExceededResultNr7   r;   r;   r;   r<   r^   d   r=   r^   c                   @   r5   )Ú LDAPAuthMethodNotSupportedResultNr7   r;   r;   r;   r<   r_   h   r=   r_   c                   @   r5   )ÚLDAPStrongerAuthRequiredResultNr7   r;   r;   r;   r<   r`   l   r=   r`   c                   @   r5   )ÚLDAPReferralResultNr7   r;   r;   r;   r<   ra   p   r=   ra   c                   @   r5   )ÚLDAPAdminLimitExceededResultNr7   r;   r;   r;   r<   rb   t   r=   rb   c                   @   r5   )Ú&LDAPUnavailableCriticalExtensionResultNr7   r;   r;   r;   r<   rc   x   r=   rc   c                   @   r5   )Ú!LDAPConfidentialityRequiredResultNr7   r;   r;   r;   r<   rd   |   r=   rd   c                   @   r5   )ÚLDAPSASLBindInProgressResultNr7   r;   r;   r;   r<   re   €   r=   re   c                   @   r5   )ÚLDAPNoSuchAttributeResultNr7   r;   r;   r;   r<   rf   „   r=   rf   c                   @   r5   )Ú LDAPUndefinedAttributeTypeResultNr7   r;   r;   r;   r<   rg   ˆ   r=   rg   c                   @   r5   )ÚLDAPInappropriateMatchingResultNr7   r;   r;   r;   r<   rh   Œ   r=   rh   c                   @   r5   )ÚLDAPConstraintViolationResultNr7   r;   r;   r;   r<   ri   �   r=   ri   c                   @   r5   )Ú LDAPAttributeOrValueExistsResultNr7   r;   r;   r;   r<   rj   ”   r=   rj   c                   @   r5   )Ú LDAPInvalidAttributeSyntaxResultNr7   r;   r;   r;   r<   rk   ˜   r=   rk   c                   @   r5   )ÚLDAPNoSuchObjectResultNr7   r;   r;   r;   r<   rl   œ   r=   rl   c                   @   r5   )ÚLDAPAliasProblemResultNr7   r;   r;   r;   r<   rm       r=   rm   c                   @   r5   )ÚLDAPInvalidDNSyntaxResultNr7   r;   r;   r;   r<   rn   ¤   r=   rn   c                   @   r5   )Ú#LDAPAliasDereferencingProblemResultNr7   r;   r;   r;   r<   ro   ¨   r=   ro   c                   @   r5   )Ú%LDAPInappropriateAuthenticationResultNr7   r;   r;   r;   r<   rp   ¬   r=   rp   c                   @   r5   )ÚLDAPInvalidCredentialsResultNr7   r;   r;   r;   r<   rq   °   r=   rq   c                   @   r5   )Ú"LDAPInsufficientAccessRightsResultNr7   r;   r;   r;   r<   rr   ´   r=   rr   c                   @   r5   )ÚLDAPBusyResultNr7   r;   r;   r;   r<   rs   ¸   r=   rs   c                   @   r5   )ÚLDAPUnavailableResultNr7   r;   r;   r;   r<   rt   ¼   r=   rt   c                   @   r5   )ÚLDAPUnwillingToPerformResultNr7   r;   r;   r;   r<   ru   À   r=   ru   c                   @   r5   )ÚLDAPLoopDetectedResultNr7   r;   r;   r;   r<   rv   Ä   r=   rv   c                   @   r5   )ÚLDAPNamingViolationResultNr7   r;   r;   r;   r<   rw   È   r=   rw   c                   @   r5   )ÚLDAPObjectClassViolationResultNr7   r;   r;   r;   r<   rx   Ì   r=   rx   c                   @   r5   )ÚLDAPNotAllowedOnNotLeafResultNr7   r;   r;   r;   r<   ry   Ð   r=   ry   c                   @   r5   )ÚLDAPNotAllowedOnRDNResultNr7   r;   r;   r;   r<   rz   Ô   r=   rz   c                   @   r5   )ÚLDAPEntryAlreadyExistsResultNr7   r;   r;   r;   r<   r{   Ø   r=   r{   c                   @   r5   )Ú#LDAPObjectClassModsProhibitedResultNr7   r;   r;   r;   r<   r|   Ü   r=   r|   c                   @   r5   )ÚLDAPAffectMultipleDSASResultNr7   r;   r;   r;   r<   r}   à   r=   r}   c                   @   r5   )ÚLDAPOtherResultNr7   r;   r;   r;   r<   r~   ä   r=   r~   c                   @   r5   )Ú LDAPLCUPResourcesExhaustedResultNr7   r;   r;   r;   r<   r   è   r=   r   c                   @   r5   )ÚLDAPLCUPSecurityViolationResultNr7   r;   r;   r;   r<   r€   ì   r=   r€   c                   @   r5   )ÚLDAPLCUPInvalidDataResultNr7   r;   r;   r;   r<   r�   ð   r=   r�   c                   @   r5   )ÚLDAPLCUPUnsupportedSchemeResultNr7   r;   r;   r;   r<   r‚   ô   r=   r‚   c                   @   r5   )ÚLDAPLCUPReloadRequiredResultNr7   r;   r;   r;   r<   rƒ   ø   r=   rƒ   c                   @   r5   )ÚLDAPCanceledResultNr7   r;   r;   r;   r<   r„   ü   r=   r„   c                   @   r5   )ÚLDAPNoSuchOperationResultNr7   r;   r;   r;   r<   r…      r=   r…   c                   @   r5   )ÚLDAPTooLateResultNr7   r;   r;   r;   r<   r†     r=   r†   c                   @   r5   )ÚLDAPCannotCancelResultNr7   r;   r;   r;   r<   r‡     r=   r‡   c                   @   r5   )ÚLDAPAssertionFailedResultNr7   r;   r;   r;   r<   rˆ     r=   rˆ   c                   @   r5   )ÚLDAPAuthorizationDeniedResultNr7   r;   r;   r;   r<   r‰     r=   r‰   c                   @   r5   )ÚLDAPESyncRefreshRequiredResultNr7   r;   r;   r;   r<   rŠ     r=   rŠ   c                   @   r5   )ÚLDAPExceptionErrorNr7   r;   r;   r;   r<   r‹   J  r=   r‹   c                   @   r5   )ÚLDAPConfigurationErrorNr7   r;   r;   r;   r<   rŒ   O  r=   rŒ   c                   @   r5   )ÚLDAPUnknownStrategyErrorNr7   r;   r;   r;   r<   r�   S  r=   r�   c                   @   r5   )Ú$LDAPUnknownAuthenticationMethodErrorNr7   r;   r;   r;   r<   rŽ   W  r=   rŽ   c                   @   r5   )ÚLDAPSSLConfigurationErrorNr7   r;   r;   r;   r<   r�   [  r=   r�   c                   @   r5   )ÚLDAPDefinitionErrorNr7   r;   r;   r;   r<   r�   _  r=   r�   c                   @   r5   )ÚLDAPPackageUnavailableErrorNr7   r;   r;   r;   r<   r‘   c  r=   r‘   c                   @   r5   )ÚLDAPConfigurationParameterErrorNr7   r;   r;   r;   r<   r’   g  r=   r’   c                   @   r5   )ÚLDAPKeyErrorNr7   r;   r;   r;   r<   r“   l  r=   r“   c                   @   r5   )ÚLDAPObjectErrorNr7   r;   r;   r;   r<   r”   p  r=   r”   c                   @   r5   )ÚLDAPAttributeErrorNr7   r;   r;   r;   r<   r•   t  r=   r•   c                   @   r5   )ÚLDAPCursorErrorNr7   r;   r;   r;   r<   r–   x  r=   r–   c                   @   r5   )ÚLDAPCursorAttributeErrorNr7   r;   r;   r;   r<   r—   |  r=   r—   c                   @   r5   )ÚLDAPObjectDereferenceErrorNr7   r;   r;   r;   r<   r˜   €  r=   r˜   c                   @   r5   )ÚLDAPSSLNotSupportedErrorNr7   r;   r;   r;   r<   r™   …  r=   r™   c                   @   r5   )Ú LDAPInvalidTlsSpecificationErrorNr7   r;   r;   r;   r<   rš   ‰  r=   rš   c                   @   r5   )ÚLDAPInvalidHashAlgorithmErrorNr7   r;   r;   r;   r<   r›   �  r=   r›   c                   @   r5   )Ú$LDAPSignatureVerificationFailedErrorNr7   r;   r;   r;   r<   rœ   �  r=   rœ   c                   @   r5   )ÚLDAPBindErrorNr7   r;   r;   r;   r<   r�   •  r=   r�   c                   @   r5   )ÚLDAPInvalidServerErrorNr7   r;   r;   r;   r<   rž   ™  r=   rž   c                   @   r5   )Ú"LDAPSASLMechanismNotSupportedErrorNr7   r;   r;   r;   r<   rŸ   �  r=   rŸ   c                   @   r5   )ÚLDAPConnectionIsReadOnlyErrorNr7   r;   r;   r;   r<   r    ¡  r=   r    c                   @   r5   )ÚLDAPChangeErrorNr7   r;   r;   r;   r<   r¡   ¥  r=   r¡   c                   @   r5   )ÚLDAPServerPoolErrorNr7   r;   r;   r;   r<   r¢   ©  r=   r¢   c                   @   r5   )ÚLDAPServerPoolExhaustedErrorNr7   r;   r;   r;   r<   r£   ­  r=   r£   c                   @   r5   )ÚLDAPInvalidPortErrorNr7   r;   r;   r;   r<   r¤   ±  r=   r¤   c                   @   r5   )ÚLDAPStartTLSErrorNr7   r;   r;   r;   r<   r¥   µ  r=   r¥   c                   @   r5   )ÚLDAPCertificateErrorNr7   r;   r;   r;   r<   r¦   ¹  r=   r¦   c                   @   r5   )ÚLDAPUserNameNotAllowedErrorNr7   r;   r;   r;   r<   r§   ½  r=   r§   c                   @   r5   )ÚLDAPUserNameIsMandatoryErrorNr7   r;   r;   r;   r<   r¨   Á  r=   r¨   c                   @   r5   )ÚLDAPPasswordIsMandatoryErrorNr7   r;   r;   r;   r<   r©   Å  r=   r©   c                   @   r5   )ÚLDAPInvalidFilterErrorNr7   r;   r;   r;   r<   rª   É  r=   rª   c                   @   r5   )ÚLDAPInvalidScopeErrorNr7   r;   r;   r;   r<   r«   Í  r=   r«   c                   @   r5   )Ú"LDAPInvalidDereferenceAliasesErrorNr7   r;   r;   r;   r<   r¬   Ñ  r=   r¬   c                   @   r5   )ÚLDAPInvalidValueErrorNr7   r;   r;   r;   r<   r­   Õ  r=   r­   c                   @   r5   )ÚLDAPControlErrorNr7   r;   r;   r;   r<   r®   Ù  r=   r®   c                   @   r5   )ÚLDAPExtensionErrorNr7   r;   r;   r;   r<   r¯   Ý  r=   r¯   c                   @   r5   )ÚLDAPLDIFErrorNr7   r;   r;   r;   r<   r°   á  r=   r°   c                   @   r5   )ÚLDAPSchemaErrorNr7   r;   r;   r;   r<   r±   å  r=   r±   c                   @   r5   )ÚLDAPSASLPrepErrorNr7   r;   r;   r;   r<   r²   é  r=   r²   c                   @   r5   )ÚLDAPSASLBindInProgressErrorNr7   r;   r;   r;   r<   r³   í  r=   r³   c                   @   r5   )ÚLDAPMetricsErrorNr7   r;   r;   r;   r<   r´   ñ  r=   r´   c                   @   r5   )ÚLDAPObjectClassErrorNr7   r;   r;   r;   r<   rµ   õ  r=   rµ   c                   @   r5   )ÚLDAPInvalidDnErrorNr7   r;   r;   r;   r<   r¶   ù  r=   r¶   c                   @   r5   )ÚLDAPResponseTimeoutErrorNr7   r;   r;   r;   r<   r·   ý  r=   r·   c                   @   r5   )ÚLDAPTransactionErrorNr7   r;   r;   r;   r<   r¸     r=   r¸   c                   @   r5   )ÚLDAPInfoErrorNr7   r;   r;   r;   r<   r¹     r=   r¹   c                   @   r5   )ÚLDAPCommunicationErrorNr7   r;   r;   r;   r<   rº   
  r=   rº   c                   @   r5   )ÚLDAPSocketOpenErrorNr7   r;   r;   r;   r<   r»     r=   r»   c                   @   r5   )ÚLDAPSocketCloseErrorNr7   r;   r;   r;   r<   r¼     r=   r¼   c                   @   r5   )ÚLDAPSocketReceiveErrorNr7   r;   r;   r;   r<   r½     r=   r½   c                   @   r5   )ÚLDAPSocketSendErrorNr7   r;   r;   r;   r<   r¾     r=   r¾   c                   @   r5   )Ú"LDAPSessionTerminatedByServerErrorNr7   r;   r;   r;   r<   r¿     r=   r¿   c                   @   r5   )ÚLDAPUnknownResponseErrorNr7   r;   r;   r;   r<   rÀ   "  r=   rÀ   c                   @   r5   )ÚLDAPUnknownRequestErrorNr7   r;   r;   r;   r<   rÁ   &  r=   rÁ   c                   @   r5   )ÚLDAPReferralErrorNr7   r;   r;   r;   r<   rÂ   *  r=   rÂ   c                   @   r5   )Ú&LDAPConnectionPoolNameIsMandatoryErrorNr7   r;   r;   r;   r<   rÃ   /  r=   rÃ   c                   @   r5   )Ú!LDAPConnectionPoolNotStartedErrorNr7   r;   r;   r;   r<   rÄ   3  r=   rÄ   c                   @   s   e Zd Zdd„ ZdS )ÚLDAPMaximumRetriesErrorc                 C   sò   g }| j rnt| j tƒrmt| j ƒdkr| dt| j d ƒ ¡ t| j ƒdkrZ| d¡ d}t| j d ƒD ]&\}}t|ƒ|krY| t|ƒ d¡d tt|ƒƒ d t|ƒ ¡ t|ƒ}q3t| j ƒd	krm| d
t| j d	 ƒ ¡ nt	 
| ¡g}t |¡S )Nr   zLDAPMaximumRetriesError: r   zException history:Ú é   ú z: é   z#Maximum number of retries reached: )ÚargsÚ
isinstanceÚtupleÚlenÚappendrP   Ú	enumerateÚrjustrG   r‹   rX   r   rV   )rN   rT   Úprev_excÚirK   r;   r;   r<   rX   9  s$   
0€€
zLDAPMaximumRetriesError.__str__N)r8   r9   r:   rX   r;   r;   r;   r<   rÅ   8  s    rÅ   c                 C   s@   | j dd„ t ¡ D ƒv rt| j | t|ƒftƒ ƒS tdt| ƒ ƒ‚)z“
    Generates a new exception class of the requested type (subclass of LDAPCommunication) merged with the exception raised by the interpreter
    c                 S   s   g | ]}|j ‘qS r;   )r8   )rQ   rI   r;   r;   r<   rU   V  s    z3communication_exception_factory.<locals>.<listcomp>z"unable to generate exception type )r8   rº   Ú__subclasses__rG   Údictr‹   rP   )Úexc_to_raiserK   r;   r;   r<   Úcommunication_exception_factoryR  s   rÖ   c                 C   s   t tjtt | ƒftƒ ƒS )zs
    Generates a new exception class of the requested type merged with the exception raised by the interpreter
    )rG   r¥   r8   rÔ   )rK   r;   r;   r<   Ústart_tls_exception_factory\  s   r×   )¬Ú__doc__Úosr   Úresultsr   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   ÚsocketÚ	Exceptionr6   r>   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r€   r�   r‚   rƒ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r@   r‹   rŒ   r�   rŽ   r�   r�   ÚImportErrorr‘   r’   ÚKeyErrorÚAttributeErrorr“   Ú
ValueErrorr”   Ú	TypeErrorr•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   r§   r¨   r©   rª   r«   r¬   r­   r®   r¯   r°   r±   r²   r³   r´   rµ   r¶   r·   r¸   r¹   rº   r»   r¼   Úerrorr½   r¾   r¿   rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   rÖ   r×   r;   r;   r;   r<   Ú<module>   sŠ   È&ÿþýüûúùø	÷
öõôóòñðïîíìëêéèçæåäãâá à!ß"Ñ2
