%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__/gp_sudoers_ext.cpython-312.pyc

�

�I�d?���ddlZddlmZmZddlmZddlmZmZddl	m
Z
d�ZdZedejd	�d
d����Zd
�ZGd�dee�Zy)�N)�
gp_pol_ext�gp_file_applier)�NamedTemporaryFile)�Popen�PIPE)�logc���|jtj�}|D]E}tjj	||�}tjj|�s�C|cSy)N)�split�os�pathsep�path�join�isfile)�
executabler
�paths�p�fs     �9/usr/lib/python3/dist-packages/samba/gp/gp_sudoers_ext.py�find_executablersQ���J�J�r�z�z�"�E�
����G�G�L�L��J�'��
�7�7�>�>�!���H���a

### autogenerated by samba
#
# This file is generated by the gp_sudoers_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.
#

�visudo�PATH�:z	/usr/sbin)r
c��g}|D�]}t}|d|zz
}t�5}t|jd�5}|j	|�ddd�t
�t
d��tt
dd|jgtt��j�}ddd�dk(rdtdd	|�
�5}t|jd�5}|j	|�ddd�|j|j�ddd���tjd|���|S#1swY��xYw#1swY��xYw#1swY�axYw#1swY��NxYw)Nz%s
�wz#visudo not found, please install itz-cz-f)�stdout�stderrr�gp_F)�prefix�delete�dirzSudoers apply failed)
�intror�open�name�writer�FileNotFoundErrorrr�wait�appendr�error)�sudo_dir�sudo_entries�retr�contentsrr�sudo_validations        r�sudo_applier_funcr/,s@��
�C�
�1�����F�Q�J���
�
!�	9�Q��a�f�f�c�"�
"�a�����!�
"��~�'�(M�N�N��6�4��q�v�v�6�#�D�2�26�$�&�
�	9��a��#�5�+0�(0�2�
#�56��!�&�&�#�&�&�!��G�G�H�%�&��
�
�1�6�6�"�
#�
#�
�I�I�,�a�0�'1�(�J�!
"�
"��	9�	9��&�&��
#�
#�sG�D1�D%�
AD1�4E	�D=�#E	�%D.�*D1�1D:	�=E�E	�	E	c�"�eZdZd�Z	dd�Zd�Zy)�gp_sudoers_extc��y)NzUnix Settings/Sudo Rights�)�selfs r�__str__zgp_sudoers_ext.__str__Es��*rc	���|D]J\}}t|�|vs�|t|�j�D]\}}|j|||���L|D�]}|js�d}	d}
tj
j
|j|
�}|j|�}|s�Sg}
|jD]H}|j|	k(s�|jj�s�.|
j|j��J|j|j�}|j|
�}|j!|j||t"||
�|j%|j|g����y)Nz1Software\Policies\Samba\Unix Settings\Sudo Rights�MACHINE/Registry.pol)�keep)�str�items�unapply�
file_sys_pathrr
r�parse�entries�keyname�data�stripr(�generate_attributer$�generate_value_hash�applyr/�clean)r4�deleted_gpo_list�changed_gpo_list�sdir�guid�settings�	attribute�sudoers�gpo�section�pol_filer
�pol_confr+�e�
value_hashs                r�process_group_policyz#gp_sudoers_ext.process_group_policyHsM��.�	;�N�D�(��4�y�H�$�*2�3�t�9�*=�*C�*C�*E�;�&�I�w��L�L��y�'�:�;�	;�
$�	7�C�� � �Q��1���w�w�|�|�C�$5�$5�x�@���:�:�d�+����!��!�)�)�4�A��y�y�G�+�������$�+�+�A�F�F�3�4�
!�3�3�C�H�H�=�	�6�T�5�5�|�D�
��
�
�3�8�8�Y�
�<M���/��
�
�3�8�8�9�+�
�6�+	7rc���i}d}|jr�tjj|j|�}|j	|�}|s|S|j
D]�}|jjd�d}|jd�s�3|jj�s�N||j�vrg||<||j|j���|S)Nr7�\���zSudo Rights)
r<rr
rr=r>r?r
�endswithr@rA�keysr()r4rM�outputrOr
rPrQ�keys        r�rsopzgp_sudoers_ext.rsopfs�����)������7�7�<�<�� 1� 1�8�<�D��z�z�$�'�H���
��%�%�
/���i�i�o�o�d�+�B�/���<�<�
�.�1�6�6�<�<�>��&�+�+�-�/�&(��s���3�K�&�&�q�v�v�.�
/��
rN)z/etc/sudoers.d)�__name__�
__module__�__qualname__r5rSr[r3rrr1r1Ds��+�"�7�<rr1)r�samba.gp.gpclassrr�tempfiler�
subprocessrr�samba.gp.util.loggingrrr"�environrr/r1r3rr�<module>rdsT��"
�8�'�"�%��		��
���
�
�6�*�K�
8�
:���00�Z��0r

Zerion Mini Shell 1.0