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

�

�I�d6��f�ddlZddlmZddlmZmZddlmZddlm	Z	m
Z
dZd�ZGd�d	ee�Z
y)
�N)�BytesIO)�
gp_xml_ext�gp_file_applier)�NamedTemporaryFile)�	get_bytes�
get_strings
### autogenerated by samba
#
# This file is generated by the vgp_openssh_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.
#

c�Z�tj|�D�cgc]}tjd|���}}|D�cgc]}|s�t	|jd����!}}|j
d�t|�dz
}tjj|d|z�Scc}wcc}w)Nz(\d+)�l�0z
%010d_gp.conf)
�os�listdir�re�match�int�group�append�min�path�join)�	directory�f�configs�m�conf_ids�conf_ids      �:/usr/lib/python3/dist-packages/samba/gp/vgp_openssh_ext.py�select_next_confr%s���.0�j�j��.C�D��r�x�x��!�$�D�G�D�)0�6�A�A��A�G�G�A�J��6�H�6��O�O�J���(�m�A�o�G�
�7�7�<�<�	�?�W�#<�=�=��	E��6s�B#�B(�B(c�"�eZdZd�Z	dd�Zd�Zy)�vgp_openssh_extc��y)NzVGP/Unix Settings/OpenSSH�)�selfs r�__str__zvgp_openssh_ext.__str__-s��*�c
��|D]J\}}t|�|vs�|t|�j�D]\}}|j|||���L|D�]�}|js�d}	tj
j
|j|	�}
|j|
�}|s�Q|jd�}|jd�}
|
jd�}|jd�D�]Z}|jd�jr� i}|jd�D]%}|jd�||jd	�<�'t�}|j�D]A\}}|jd
t|j�t|j�fz��C|j|j�}|j!|j#��}tj
j%|�st	j&|d�d�}|j)|j|||||�|j+���]���y)
N�)MACHINE/VGP/VTLA/SshCfg/SshD/manifest.xml�
policysetting�data�
configfile�
configsection�sectionname�keyvaluepair�value�keys%s %s
�c���t|�}t|d�}|jt�|j|j	��tj|d�|j�|gS)N�wbr.)r�open�write�intro�getvaluer�chmod�close)�cfg_dir�raw�filenamers    r�applier_funcz:vgp_openssh_ext.process_group_policy.<locals>.applier_funcTsT��#3�G�#<�� ��4�0��������������/�����5�1����	� (�z�)r#)�str�items�unapply�
file_sys_pathrrr�parse�find�findall�textrr2r�generate_attribute�name�generate_value_hashr4�isdir�mkdir�applyr6)r!�deleted_gpo_list�changed_gpo_listr7�guid�settings�	attribute�sshd_config�gpo�xmlr�xml_conf�policyr'r(r)�kvr8�k�v�
value_hashr:s                      r�process_group_policyz$vgp_openssh_ext.process_group_policy0s��.�	?�N�D�(��4�y�H�$�.6�s�4�y�.A�.G�.G�.I�?�*�I�{��L�L��y�+�>�?�	?�
$�'	 �C�� � �A���w�w�|�|�C�$5�$5�s�;���:�:�d�+����!����7���{�{�6�*��!�Y�Y�|�4�
�%/�%7�%7��%H� �M�$�)�)�-�8�=�=� �!�H�+�3�3�N�C�D��35�7�7�7�3C�������0�D�!�)�C� (��� 0�J���1��	�	�*�#,�Q�V�V�#4�i����6G�"H�#I�J�J�
!%� 7� 7���� A�I�"&�!9�!9�#�,�,�.�!I�J��7�7�=�=��1�����%�0�*��J�J�s�x�x��J��&��-��I�I�K�; �'	 r#c�t�i}|j�r(d}tjj|j|�}|j	|�}|s|S|jd�}|jd�}|jd�}|j
d�D]�}	|	jd�jr�|	j
d�D]n}
t|�|j�vri|t|�<|
jd�j|t|�|
jd	�j<�p��|S)
Nr%r&r'r(r)r*r+r,r-)
r>rrrr?r@rArBr;�keys)r!rO�outputrPrrQrRr'r(r)rSs           r�rsopzvgp_openssh_ext.rsop`s�������=�C��7�7�<�<�� 1� 1�3�7�D��z�z�$�'�H���
��]�]�?�3�F��;�;�v�&�D����<�0�J�!+�!3�!3�O�!D�
.�
� �%�%�m�4�9�9��'�/�/��?�.�B��4�y����
�5�,.��s�4�y�)�����(�-�-��3�t�9�%�b�g�g�e�n�&9�&9�:�.�
.��
r#N)z/etc/ssh/sshd_config.d)�__name__�
__module__�__qualname__r"rWr[r r#rrr,s��+�-�. �`r#r)r�ior�samba.gp.gpclassrr�tempfiler�samba.commonrrr3rrr r#r�<module>rcs2��"
��8�'�.�		��>�G�j�/�Gr#

Zerion Mini Shell 1.0