a
    “I_¾  ã                   @   s.   d dl ZG dd„ dƒZG dd„ dejjƒZdS )é    Nc                   @   s   e Zd Zedd„ ƒZdS )ÚPasswordCommonc                 C   sD   |  ¡ }|  |j|¡ | d¡ | ¡ }|  |j|¡ | d¡ dS )ú@Updates the DC to allow password changes during the current testZ	000000001Ú0N)Zget_dsheuristicsZ
addCleanupZset_dsheuristicsZget_minPwdAgeZset_minPwdAge)ZtestcaseÚsamdbZdsheuristicsZ	minPwdAge© r   ú;/usr/lib/python3/dist-packages/samba/tests/password_test.pyÚallow_password_changes   s    
z%PasswordCommon.allow_password_changesN)Ú__name__Ú
__module__Ú__qualname__Ústaticmethodr   r   r   r   r   r      s   r   c                   @   s   e Zd Zddd„ZdS )ÚPasswordTestCaseNc                 C   s   |du r| j }t | |¡ dS )r   N)Zldbr   r   )Úselfr   r   r   r   r   5   s    z'PasswordTestCase.allow_password_changes)N)r	   r
   r   r   r   r   r   r   r   1   s   r   )Zsamba.testsZsambar   ZtestsZTestCaser   r   r   r   r   Ú<module>   s   