%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/gp/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/gp/__pycache__/vgp_symlink_ext.cpython-312.pyc |
� �I�d� � �\ � d dl Z d dlmZmZ d dlmZ d dlmZmZ d dl m Z G d� dee� Zy)� N)� gp_xml_ext�gp_file_applier)�NamedTemporaryFile)�Popen�PIPE)�logc � � e Zd Zd� 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 | � |v s�|t | � j � D ] \ }}| j |||� � �L |D ]� }|j s�d}t j j |j |� } | j | � } | s�P| j d� }|j d� }|j d� D ]n } | j d� j }| j d� j }|}| j |� }d� }| j |j |||||� �p �� y )N�*MACHINE/VGP/VTLA/Unix/Symlink/manifest.xml� policysetting�data�file_properties�source�targetc � � t j j |� st j | |� |gS t j d|� g S )NzSymlink destination exists)�os�path�exists�symlinkr �warn)r r s r �applier_funcz:vgp_symlink_ext.process_group_policy.<locals>.applier_func4 s; � �!�w�w�~�~�f�5��J�J�v�v�6�$*�8�O��H�H�%A�6�J�!� r )�str�items�unapply� file_sys_pathr r �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 �entryr r � value_hashr s r �process_group_policyz$vgp_symlink_ext.process_group_policy s> � �.� ;�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�/�#/� /r c � � i }d}|j r�t j j |j |� }| j |� }|s|S |j d� }|j d� }|j d� D ]� }|j d� j } |j d� j } t | � |j � vrg |t | � <