%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_access_ext.cpython-312.pyc

�

�I�d�"��~�ddlZddlZddlmZmZddlmZddlmZddl	m
Z
dZdZdZ
d	�Zd
�Zd�ZGd�d
ee�Zy)�N)�
gp_xml_ext�gp_file_applier)�NamedTemporaryFile)�	get_bytes)�loga

### autogenerated by samba
#
# This file is generated by the vgp_access_ext Group Policy
# Client Side Extension. To modify the contents of this file,
# modify the appropriate Group Policy objects which apply
# to this machine. DO NOT MODIFY THIS FILE DIRECTLY.
#

l�0z_gp_DENY_ALL.confc���tjj|dt|�tfz�}td|��5}t
|jd�5}|jt�|jd�ddd�tj|jd�tj|j|�ddd�|S#1swY�SxYw#1swY|SxYw)Nz%d%sF��delete�dir�w�	-:ALL:ALL�)�os�path�join�select_next_deny�	DENY_FILEr�open�name�write�intro�chmod�rename)�access�
deny_filename�frs    �9/usr/lib/python3/dist-packages/samba/gp/vgp_access_ext.py�	deny_filer)s����G�G�L�L���"2�6�":�I�!F�F�H�M�	�5�f�	5�)��
�!�&�&�#�
�	!�!�
�G�G�E�N�
�G�G�K� �	!�	��������
�	�	�!�&�&�-�(�)���	!�	!��)���s%�C�'C�>AC�C	�C�C&c
��tj|�D�cgc]!}t|vs�tjd|���#}}t|D�cgc]}|s�t
|jd����!c}tgz�dzScc}wcc}w)N�(\d+)�)	r�listdirr�re�match�max�int�group�
DENY_BOUND��	directoryr�configs�ms    rrr4si��.0�j�j��.C�V��y�TU�~�r�x�x��!�$�V�G�V���6�A�A��A�G�G�A�J��6�
�|�C�D�Q�F�F��W��6s�
A?�A?�	B�Bc
�
�tj|�D�cgc]!}t|vs�tjd|���#}}t|D�cgc]}|s�t
|jd����!c}dgz�dzScc}wcc}w)Nr r!r)rr"rr#r$r%r&r'r)s    r�select_next_confr.<sj��.0�j�j��.C�Z��y�XY�GY�r�x�x��!�$�Z�G�Z���6�A�A��A�G�G�A�J��6��s�:�;�A�=�=��[��6s�
A;�A;�	B�Bc�"�eZdZd�Z	dd�Zd�Zy)�vgp_access_extc��y)NzVGP/Unix Settings/Host Access�)�selfs r�__str__zvgp_access_ext.__str__As��.�c
����|D]J\}}t|�|vs�|t|�j�D]\}}|j|||���L|D�]}|js�d}	tj
j
|j|	�}
|j|
�}d}tj
j
|j|�}
|j|
�}
g}g}|jjd�}|r�|jd�}|jd�}|jd�}|D]b}|jd�}|jd�j}|jd	�j}|jd
|�|�|�d���dt|�dkDr/tj d
�|jt#|��|
r�|
jd�}|jd�}|jd�D]�}|jd�}|jd�j}|jd	�j}|jd|�|�|�d��t�dkDs�rtj$d|dz���t|�dk(r��Wt'|�}tj
j
|d|z�}|j|�dj
|��|j)|j*�}|j-��}�fd�}|j/|j*||||||�|j1|j*|g����y)N�9MACHINE/VGP/VTLA/VAS/HostAccessControl/Allow/manifest.xml�8MACHINE/VGP/VTLA/VAS/HostAccessControl/Deny/manifest.xml�winbind separator�
policysetting�data�listelement�adobjectr�domain�+:�:ALLrz=Adding an implicit deny ALL because an allow entry is present�-:z1Deny entry '%s' is meaningless with allow present���z
%010d_gp.conf�
c����tjj|�stj|d�t	d|��5}t|jd�5}|jt�|j��ddd�tj|jd�tj|j|�ddd�|S#1swY�SxYw#1swY|SxYw)NrFr	r)rr�isdir�mkdirrrrrrrr)r�access_file�policy_filesrr�access_contentss     �r�applier_funcz9vgp_access_ext.process_group_policy.<locals>.applier_func~s�����7�7�=�=��0������/�+�5�f�E�7��!�!�&�&�#�.�5�!��G�G�E�N��G�G�O�4�5��������/��	�	�!�&�&�+�6�7�(�'�5�5��7�(�'�s%�C �'C�AC �C	�C � C*)�keep)�str�items�unapply�
file_sys_pathrrr�parse�lp�get�find�findall�text�append�lenr�infor�warnr.�generate_attributer�generate_value_hash�apply�clean)r3�deleted_gpo_list�changed_gpo_listr�guid�settings�	attributerH�gpo�allowr�
allow_conf�deny�	deny_conf�entries�winbind_sep�policyr;�allow_listelementsr<r=rr>�conf_idrG�
value_hashrJrIs                           @r�process_group_policyz#vgp_access_ext.process_group_policyDs%���.�	@�N�D�(��4�y�H�$�/7��D�	�/B�/H�/H�/J�@�+�I�|��L�L��y�,�?�@�	@�
$�@	7�C�� � �S���w�w�|�|�C�$5�$5�u�=��!�Z�Z��-�
�Q���w�w�|�|�C�$5�$5�t�<�� �J�J�t�,�	���!��"�g�g�k�k�*=�>���'�_�_�_�=�F�!�;�;�v�.�D�)-���m�)D�&�'9�@��#.�#3�#3�J�#?��'�}�}�V�4�9�9��!)���x�!8�!=�!=������9D�9=�(?�@�	@��-�.��2����"5�6�$�+�+�I�f�,=�>��&�^�^�O�<�F�!�;�;�v�.�D�'+�|�|�M�'B�	D��#.�#3�#3�J�#?��'�}�}�V�4�9�9��!)���x�!8�!=�!=������9D�9=�(?�@��1�2�Q�6��H�H�&5�7>�r�{�&C�D�	D��w�<�1�$��*�6�2�� �g�g�l�l�6�?�W�3L�M���#�#�K�0�"&�)�)�G�"4��!�3�3�C�H�H�=�	�"�5�5�o�F�
�	(��
�
�3�8�8�Y�
�L�!�;��>��
�
�3�8�8�9�+�
�6�A@	7r5c���i}|j�rbd}tjj|j|�}|j	|�}d}tjj|j|�}|j	|�}g}|j
j
d�}	|r�|jd�}
|
jd�}|jd�}|D]�}
|
jd�}|jd�j}|jd	�j}t|�|j�vrg|t|�<|t|�jd
|�|	�|�d����t|�dkDr|t|�jd
�|r�|jd�}
|
jd�}|jd�D]�}
|
jd�}|jd�j}|jd	�j}t|�|j�vrg|t|�<|t|�jd|�|	�|�d����|S)Nr7r8r9r:r;r<r=rr>r?r@rr
rA)rOrrrrPrQrRrSrTrUrL�keysrVrW)r3rc�outputrdrrerfrgrhrirjr;rkr<r=rr>s                 r�rsopzvgp_access_ext.rsop�s$�������O�E��7�7�<�<�� 1� 1�5�9�D����D�)�J�M�D��7�7�<�<�� 1� 1�4�8�D��
�
�4�(�I��G��'�'�+�+�&9�:�K��#����9���{�{�6�*��%)�\�\�-�%@�"�#5�H�K�*�/�/�
�;�H�#�=�=��0�5�5�D�%�]�]�8�4�9�9�F��4�y����
�5�,.��s�4�y�)��3�t�9�%�,�,�t�?J�?E�.G�H�
H��)�*�Q�.��3�t�9�%�,�,�[�9��"����8���{�{�6�*��#'�<�<�
�#>�H�K�*�/�/�
�;�H�#�=�=��0�5�5�D�%�]�]�8�4�9�9�F��4�y����
�5�,.��s�4�y�)��3�t�9�%�,�,�t�?J�?E�.G�H�
H��
r5N)z/etc/security/access.d)�__name__�
__module__�__qualname__r4rnrrr2r5rr0r0@s��/�%=�G7�R&r5r0)rr#�samba.gp.gpclassrr�tempfiler�samba.commonr�samba.gp.util.loggingrrr(rrrr.r0r2r5r�<module>rzsI��"�8�'�"�%�		���
��	�
	�G�>�s�Z��sr5

Zerion Mini Shell 1.0