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

�

�I�d���L�ddlZddlmZmZddlmZddlmZGd�dee�Zy)�N)�
gp_xml_ext�gp_file_applier)�sudo_applier_func)�logc�"�eZdZd�Z	dd�Zd�Zy)�vgp_sudoers_extc��y)NzVGP/Unix Settings/Sudo Rights�)�selfs �:/usr/lib/python3/dist-packages/samba/gp/vgp_sudoers_ext.py�__str__zvgp_sudoers_ext.__str__s��.�c	��|D]J\}}t|�|vs�|t|�j�D]\}}|j|||���L|D�]�}|js�d}	tj
j
|j|	�}
|j|
�}|s�Q|jd�}|jd�}
g}|
jd�D�]}|jd�j}|jd�j}|jd�}g}|D]"}|j|jd���$t|�d	kDrKd
j
|D�cgc]/}|jddk(r|jnd|jz��1c}�}nd
}|jd�du}|rdnd}|�d|�d|�d|��}|j|���|j|j �}|j"|�}|j%|j ||t&||�|j)|j |g�����ycc}w)N�7MACHINE/VGP/VTLA/Sudo/SudoersConfiguration/manifest.xml�
policysetting�data�
sudoers_entry�command�user�listelement�	principalr�,�type�%s%%�ALL�password�
 NOPASSWD:�� ALL=(�)� )�keep)�str�items�unapply�
file_sys_path�os�path�join�parse�find�findall�text�extend�len�attrib�append�generate_attribute�name�generate_value_hash�applyr�clean)r�deleted_gpo_list�changed_gpo_list�sdir�guid�settings�	attribute�sudoers�gpo�xmlr(�xml_conf�policyr�sudo_entries�entryrr�listelements�
principalsr�u�uname�
nopassword�np_entry�p�
value_hashs                           r�process_group_policyz$vgp_sudoers_ext.process_group_policys?��.�	;�N�D�(��4�y�H�$�*2�3�t�9�*=�*C�*C�*E�;�&�I�w��L�L��y�'�:�;�	;�
$�#	7�C�� � �O���w�w�|�|�C�$5�$5�s�;���:�:�d�+����!����7���{�{�6�*��!��!�\�\�/�:�+�E�#�j�j��3�8�8�G� �:�:�f�-�2�2�D�#(�=�=��#?�L�!#�J�'3�L��"�)�)�+�*=�*=�k�*J�K�L��:���*� #���:D�*F�56�56�H�H�V�4D��4N�!�&�&�!'�!�&�&��+1�*F�!G��!&��!&���J�!7�4�!?�J�/9�|�r�H�.3�T�8�W�M�A� �'�'��*�+�$!�3�3�C�H�H�=�	�6�T�5�5�|�D�
��
�
�3�8�8�Y�
�<M���/��
�
�3�8�8�9�+�
�6�G#	7��$*Fs�)4Ic��i}d}|j�r�tjj|j|�}|j	|�}|s|S|jd�}|jd�}|j
d�D�]:}|jd�j}	|jd�j}
|j
d�}g}|D]"}
|j|
j
d���$t|�d	kDrKd
j|D�cgc]/}|jddk(r|jnd|jz��1c}�}nd
}|jd�du}|rdnd}|�d|
�d|�d|	��}t|�|j�vrg|t|�<|t|�j|���=|Scc}w)Nrrrrrrrrrrrrrrrrrr r!)r&r'r(r)r*r+r,r-r.r/r0r#�keysr1)rr>�outputr?r(r@rArrCrrrDrErrFrGrHrIrJs                   r�rsopzvgp_sudoers_ext.rsopFs�����G������7�7�<�<�� 1� 1�3�7�D��z�z�$�'�H���
��]�]�?�3�F��;�;�v�&�D����o�6�
,���*�*�Y�/�4�4���z�z�&�)�.�.��$�}�}�]�;���
�#/�H�K��%�%�k�&9�&9�+�&F�G�H��z�?�Q�&��H�H�6@�&B�12�12����0@�F�0J�a�f�f�#�a�f�f�_�'-�&B�C�E�"�E�"�Z�Z�
�3�t�;�
�+5�<�2��*/��x��I���t�9�F�K�K�M�1�(*�F�3�t�9�%��s�4�y�!�(�(��+�#
,�$�
��&Bs�4G
N)z/etc/sudoers.d)�__name__�
__module__�__qualname__r
rLrPr
rrrrs��/�"�*7�Xrr)	r'�samba.gp.gpclassrr�samba.gp.gp_sudoers_extr�samba.gp.util.loggingrrr
rr�<module>rWs#��"
�8�5�%�L�j�/�Lr

Zerion Mini Shell 1.0