HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/samba/tests/__pycache__/gpo_member.cpython-310.pyc
o

�/a��@sfddlZddlmZmZddlmZddlmZddlm	Z	ddl
mZddlZGdd�dej
�ZdS)	�N)�gpo�tests)�
GPOStorage)�LoadParm)�Credentials)�
gp_access_extcs0eZdZ�fdd�Z�fdd�Zdd�Z�ZS)�GPOTestscsRtt|���tjd|_|j��d|_t�|_	|j	�
�|j|��d�|_
dS)N�SERVER�$)�template)�superr�setUp�os�environ�server�upper�
dc_accountr�lp�load_default�insta_creds�get_credentials�creds��self��	__class__��8/usr/lib/python3/dist-packages/samba/tests/gpo_member.pyr
s
zGPOTests.setUpcstt|���dS)N)rr�tearDownrrrrr"szGPOTests.tearDowncCs`t�d�}|j�d�}ttj�|d��}zt||j|j	|�WdSt
y/|�d�YdSw)N�	gpo_testszcache directoryzgpo.tdbz3Initializing gp_access_ext should not require ad-dc)�logging�	getLoggerr�getrr�path�joinrr�	Exception�fail)r�logger�	cache_dir�storerrr�test_sec_ext_load_on_member%s
�z$GPOTests.test_sec_ext_load_on_member)�__name__�
__module__�__qualname__r
rr*�
__classcell__rrrrrsr)r�sambarr�
samba.gpclassr�samba.paramr�samba.credentialsr�samba.gp_sec_extrr �TestCaserrrrr�<module>s