HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib64/python3.9/site-packages/ldap/controls/__pycache__/ppolicy.cpython-39.pyc
a

�.d0�@s�dZdgZddlmZmZmZddlmZmZm	Z	m
Z
mZddlm
Z
Gdd�de
j�ZGdd	�d	e
j�ZGd
d�de
j�ZGdd�dee�Zeeej<d
S)z�
ldap.controls.ppolicy - classes for Password Policy controls
(see https://tools.ietf.org/html/draft-behera-ldap-password-policy)

See https://www.python-ldap.org/ for project details.
�PasswordPolicyControl�)�ResponseControl�ValueLessRequestControl�KNOWN_RESPONSE_CONTROLS)�tag�	namedtype�namedval�univ�
constraint)�decoderc@s\eZdZe�e�de��je	�
e	je	jd�d��e�de��je	�
e	je	jd�d���Z
dS)�PasswordPolicyWarning�timeBeforeExpirationr�ZimplicitTag�graceAuthNsRemaining�N)�__name__�
__module__�__qualname__r�
NamedTypesZ	NamedTyper	ZInteger�subtyper�Tag�tagClassContext�tagFormatSimple�
componentType�rr�;/usr/lib64/python3.9/site-packages/ldap/controls/ppolicy.pyrs���rc
@sLeZdZe�ddddddddd	d
�
Zejje	�
ddd
ddddddd�
ZdS)�PasswordPolicyError)ZpasswordExpiredr)Z
accountLockedr)ZchangeAfterReset�)ZpasswordModNotAllowed�)ZmustSupplyOldPassword�)ZinsufficientPasswordQuality�)ZpasswordTooShort�)ZpasswordTooYoung�)ZpasswordInHistory�)ZpasswordTooLong�	rrrrrr r!r"r#r$N)rrrrZNamedValuesZnamedValuesr	�
EnumeratedZsubtypeSpecr
ZSingleValueConstraintrrrrr!s�rc@sXeZdZe�e�de�je�	ej
ejd�d��e�de�je�	ej
ejd�d���Z
dS)�PasswordPolicyResponseValue�warningrr�errorrN)rrrrrZOptionalNamedTyperrrrrrrrrrrrr&1s�����r&c@s&eZdZdZdZd	dd�Zdd�ZdS)
ra6
  Indicates the errors and warnings about the password policy.

  Attributes
  ----------

  timeBeforeExpiration : int
      The time before the password expires.

  graceAuthNsRemaining : int
      The number of grace authentications remaining.

  error: int
      The password and authentication errors.
  z1.3.6.1.4.1.42.2.27.8.5.1FcCs||_d|_d|_d|_dS)N)�criticalityr
rr()�selfr)rrr�__init__SszPasswordPolicyControl.__init__cCsvtj|t�d�\}}|�d�}|��rVd|vr>t|�d��|_d|vrVt|�d��|_|�d�}|��rrt|�|_dS)N)Zasn1Specr'r
rr()	r�decoder&ZgetComponentByNameZhasValue�intr
rr()r*ZencodedControlValueZppolicyValue�_r'r(rrr�decodeControlValueYs
��
z(PasswordPolicyControl.decodeControlValueN)F)rrr�__doc__�controlTyper+r/rrrrrAs
N)r0�__all__Z
ldap.controlsrrrZpyasn1.typerrrr	r
Zpyasn1.codec.derrZChoicerr%r�Sequencer&rr1rrrr�<module>s�(