o
    Žõ±j  ã                   @   sf  d dl mZ i d d“dd“dd“dd“d	d
“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd “d!d"“i d#d$“d%d&“d'd(“d)d*“d+d,“d-d.“d/d0“d1d2“d3d4“d5d6“d7d8“d9d:“d;d<“d=d>“d?d@“dAdB“dCdD“¥dEdFdGdHdIdJœ¥ZdKdL„ e ¡ D ƒZG dMdN„ dNeƒZG dOdP„ dPeƒZG dQdR„ dReƒZG dSdT„ dTeƒZ	G dUdV„ dVeƒZ
G dWdX„ dXeƒZdYS )Zé    )Ú
resultCodeÚsuccessé   ÚoperationsErroré   ÚprotocolErroré   ÚtimeLimitExceededé   ÚsizeLimitExceededé   ÚcompareFalseé   ÚcompareTrueé   ÚauthMethodNotSupportedé   ÚstrongerAuthRequiredé
   Úreferralé   ÚadminLimitExceededé   ÚunavailableCriticalExtensioné   ÚconfidentialityRequiredé   ÚsaslBindInProgressé   ÚnoSuchAttributeé   ÚundefinedAttributeTypeé   ÚinappropriateMatchingé   ÚconstraintViolationé   ÚattributeOrValueExistsé   ÚinvalidAttributeSyntaxé    ÚnoSuchObjecté!   ÚaliasProblemé"   ÚinvalidDNSyntaxé$   ÚaliasDereferencingProblemé0   ÚinappropriateAuthenticationé1   ÚinvalidCredentialsé2   ÚinsufficientAccessRightsé3   Úbusyé4   Úunavailableé5   ÚunwillingToPerformé6   Ú
loopDetecté@   ÚnamingViolationéA   ÚobjectClassViolationéB   ÚnotAllowedOnNonLeafÚnotAllowedOnRDNÚentryAlreadyExistsÚobjectClassModsProhibitedÚaffectsMultipleDSAsÚother)éC   éD   éE   éG   éP   c                 C   s   i | ]\}}||“qS © rP   )Ú.0ÚkÚvrP   rP   úŒ/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/msldap/commons/exceptions.pyÚ
<dictcomp>.   s    rU   c                       s   e Zd Zd‡ fdd„	Z‡  ZS )ÚLDAPServerExceptionNc                    sJ   t | | _|| _|| _|| _| jd u rd| j| jf | _tƒ  | j¡ d S )Nz6LDAP server sent error! Result code: "%s" Reason: "%s")ÚLDAPResultCodeLookup_invÚ
resultcodeÚ
resultnameÚdiagnostic_messageÚmessageÚsuperÚ__init__)ÚselfrY   rZ   r[   ©Ú	__class__rP   rT   r]   1   s   

zLDAPServerException.__init__)N©Ú__name__Ú
__module__Ú__qualname__r]   Ú__classcell__rP   rP   r_   rT   rV   0   s    rV   c                       ó   e Zd Z‡ fdd„Z‡  ZS )ÚLDAPSearchExceptionc                    ó    d||f }t ƒ  |||¡ d S )Nz2LDAP Search failed! Result code: "%s" Reason: "%s"©r\   r]   ©r^   rX   rZ   r[   r_   rP   rT   r]   ;   ó   zLDAPSearchException.__init__ra   rP   rP   r_   rT   rg   :   ó    rg   c                       rf   )ÚLDAPBindExceptionc                    rh   )Nz0LDAP Bind failed! Result code: "%s" Reason: "%s"ri   rj   r_   rP   rT   r]   @   rk   zLDAPBindException.__init__ra   rP   rP   r_   rT   rm   ?   rl   rm   c                       rf   )ÚLDAPAddExceptionc                    ó*   || _ d| j ||f }tƒ  |||¡ d S )NzBLDAP Add operation failed on DN %s! Result code: "%s" Reason: "%s"©Údnr\   r]   ©r^   rq   rX   rZ   r[   r_   rP   rT   r]   E   ó   zLDAPAddException.__init__ra   rP   rP   r_   rT   rn   D   rl   rn   c                       rf   )ÚLDAPModifyExceptionc                    ro   )NzELDAP Modify operation failed on DN %s! Result code: "%s" Reason: "%s"rp   rr   r_   rP   rT   r]   K   rs   zLDAPModifyException.__init__ra   rP   rP   r_   rT   rt   J   rl   rt   c                       rf   )ÚLDAPDeleteExceptionc                    ro   )NzELDAP Delete operation failed on DN %s! Result code: "%s" Reason: "%s"rp   rr   r_   rP   rT   r]   Q   rs   zLDAPDeleteException.__init__ra   rP   rP   r_   rT   ru   P   rl   ru   N)Úmsldap.protocol.messagesr   ÚLDAPResultCodeLookupÚitemsrW   Ú	ExceptionrV   rg   rm   rn   rt   ru   rP   rP   rP   rT   Ú<module>   s¦   ÿþýüûúùø	÷
öõôóòñðïîíìëêéèçæåäãâá à!ß"Þ#Ù)
