%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/samba/gp/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/samba/gp/__pycache__/gp_sudoers_ext.cpython-312.pyc |
�
�I�d? � � � d dl Z d dlmZmZ d dlmZ d dlmZmZ d dl m
Z
d� ZdZ ede j d �d
d���� Zd
� Z G d� dee� Zy)� N)�
gp_pol_ext�gp_file_applier)�NamedTemporaryFile)�Popen�PIPE)�logc �� � |j t j � }|D ]E }t j j || � }t j j |� s�C|c S y )N)�split�os�pathsep�path�join�isfile)�
executabler
�paths�p�fs �9/usr/lib/python3/dist-packages/samba/gp/gp_sudoers_ext.py�find_executabler sQ � ��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|z z
}t � 5 }t |j d� 5 }|j |� d d d � t
�t
d� �t t
dd|j gt t �� j � }d d d � dk( rdt dd | �
� 5 }t |j d� 5 }|j |� d d d � |j |j � d d d � ��t j d|� �� |S # 1 sw Y ��xY w# 1 sw Y ��xY w# 1 sw Y �axY w# 1 sw Y ��NxY w)Nz%s
�wz#visudo not found, please install itz-cz-f)�stdout�stderrr �gp_F)�prefix�delete�dirzSudoers apply failed)
�intror �open�name�writer �FileNotFoundErrorr r �wait�appendr �error)�sudo_dir�sudo_entries�retr �contentsr r �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 �"