%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/samba/netcmd/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/samba/netcmd/__pycache__/gpcommon.cpython-312.pyc |
�
�I�d� � �N � d dl Z d dlmZ d dlmZ d dlmZ d dlm Z d� Z
d� Zd� Zy) � N)�SMB_SIGNING_REQUIRED)�param)�libsmb_samba_internal)�CommandErrorc � � | j � }|j t j | d� � |j t j | d|z � � |S )zConstruct the DN for gpozCN=Policies,CN=SystemzCN=%s)�get_default_basedn� add_child�ldb�Dn)�samdb�gpo�dns �7/usr/lib/python3/dist-packages/samba/netcmd/gpcommon.py�
get_gpo_dnr sJ � �
� !� !� #�B��L�L�����6�7�8��L�L�����w��}�-�.�
�I� c � � |j dd� j d� }d}|D ]- }|dz |z }| j |� r�| j |� �/ y )N�/�\� )�replace�split�chkpath�mkdir)�conn� remotedir�elems�path�es r �create_directory_hierr ! sX � ����c�4�(�.�.�t�4�E�
�D�
� ���d�{�Q����|�|�D�!��J�J�t��r c �: � |j � }|j t � t j � }|j |j � t j | |||�� }|j |� |S # t $ r t d| z � �w xY w)N)�lp�credsz"Error connecting to '%s' using SMB)�get_smb_signing�set_smb_signingr �s3param�get_context�load�
configfile�libsmb�Conn� Exceptionr )�dc_hostname�servicer! r"