%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/samba/gp/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/samba/gp/__pycache__/vgp_symlink_ext.cpython-312.pyc

�

�I�d�
��\�ddlZddlmZmZddlmZddlmZmZddl	m
Z
Gd�dee�Zy)�N)�
gp_xml_ext�gp_file_applier)�NamedTemporaryFile)�Popen�PIPE)�logc��eZdZd�Zd�Zd�Zy)�vgp_symlink_extc��y)Nz VGP/Unix Settings/Symbolic Links�)�selfs �:/usr/lib/python3/dist-packages/samba/gp/vgp_symlink_ext.py�__str__zvgp_symlink_ext.__str__s��1�c
��|D]J\}}t|�|vs�|t|�j�D]\}}|j|||���L|D]�}|js�d}tj
j
|j|�}	|j|	�}
|
s�P|
jd�}|jd�}|jd�D]n}
|
jd�j}|
jd�j}|}|j|�}d�}|j|j|||||��p��y)N�*MACHINE/VGP/VTLA/Unix/Symlink/manifest.xml�
policysetting�data�file_properties�source�targetc��tjj|�stj||�|gSt	j
d|�gS)NzSymlink destination exists)�os�path�exists�symlinkr�warn)rrs  r�applier_funcz:vgp_symlink_ext.process_group_policy.<locals>.applier_func4s;��!�w�w�~�~�f�5��J�J�v�v�6�$*�8�O��H�H�%A�6�J�!�	r)�str�items�unapply�
file_sys_pathrr�join�parse�find�findall�text�generate_value_hash�apply�name)r
�deleted_gpo_list�changed_gpo_list�guid�settings�	attributer�gpo�xmlr�xml_conf�policyr�entryrr�
value_hashrs                  r�process_group_policyz$vgp_symlink_ext.process_group_policys>��.�	;�N�D�(��4�y�H�$�*2�3�t�9�*=�*C�*C�*E�;�&�I�w��L�L��y�'�:�;�	;�
$�	/�C�� � �B���w�w�|�|�C�$5�$5�s�;���:�:�d�+����!����7���{�{�6�*��!�\�\�*;�<�/�E�"�Z�Z��1�6�6�F�"�Z�Z��1�6�6�F�!'�I�"&�!9�!9�&�!A�J�"��J�J�s�x�x��J��%�v�/�#/�	/rc��i}d}|jr�tjj|j|�}|j	|�}|s|S|jd�}|jd�}|j
d�D]�}|jd�j}	|jd�j}
t|�|j�vrg|t|�<|t|�jd|	�d|
�����|S)	Nrrrrrrzln -s � )r"rrr#r$r%r&r'r�keys�append)r
r0�outputr1rr2r3rr4rrs           r�rsopzvgp_symlink_ext.rsop>s�����:������7�7�<�<�� 1� 1�3�7�D��z�z�$�'�H���
��]�]�?�3�F��;�;�v�&�D����&7�8�
K�����H�-�2�2�����H�-�2�2���t�9�F�K�K�M�1�(*�F�3�t�9�%��s�4�y�!�(�(�&�&�)I�J�
K��
rN)�__name__�
__module__�__qualname__rr6r<rrrr
r
s��2�!/�Frr
)r�samba.gp.gpclassrr�tempfiler�
subprocessrr�samba.gp.util.loggingrr
rrr�<module>rDs$��"
�8�'�"�%�7�j�/�7r

Zerion Mini Shell 1.0