%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/forest.cpython-312.pyc

�

�I�d4����ddlZddlmZddlmZddlmZddlm	Z	m
Z
mZmZGd�de	�Z
Gd�de	�ZGd	�d
e
�ZGd�de�ZGd
�de�ZGd�de�Zy)�N)�system_session)�SamDB)�Command�CommandError�SuperCommand�Optionc��eZdZdZdZejejejd�Z	e
dddedd�	�gZdd�Z
y
)
�cmd_forest_showz�Display forest settings.

    These settings control the behaviour of all domain controllers in this
    forest. This displays those settings from the replicated configuration
    partition.
    z%prog [options]��	sambaopts�versionopts�credopts�-H�--URL�%LDB URL for database or target server�URL�H��help�type�metavar�destNc� �|j�}|j|�}t|t�||��}|j	�}|j
�d|��}	|j
|	tj|j��}
|
d}|jjd|	z�|jD]*}	|jj|�d||d�d���,y#t$r!|jjd|z�Y�WwxYw)	N��url�session_info�credentials�lp�,)�base�scope�attrsrzSettings for %s
�: �
z%s: <NO VALUE>
)
�get_loadparm�get_credentialsrr�	domain_dn�objectdn�search�ldb�
SCOPE_BASE�
attributes�outf�write�KeyError)
�selfrrrr
r�creds�samdbr'�	object_dn�res�
res_object�attrs
             �5/usr/lib/python3/dist-packages/samba/netcmd/forest.py�runzcmd_forest_show.run4s���
�
#�
#�
%���(�(��,���!�.�*:�"'�B�0���O�O�%�	�#�}�}�i�8�	��l�l�	����!%����2����V�
��	�	���+�i�7�8��O�O�	;�D�
;��	�	���d�J�t�4D�Q�4G� H�I�	;���
;��	�	��� 2�T� 9�:�
;�s�9'C#�#'D
�D
�NNNN)�__name__�
__module__�__qualname__�__doc__�synopsis�options�SambaOptions�VersionOptions�CredentialsOptions�takes_optiongroupsr�str�
takes_optionsr8��r7r
r
sW���!�H��)�)��-�-��.�.���	�t�W�#J���S�	2��M�
;rGr
c��eZdZdZdZdZdZejejejd�Zeddde
dd	�
�gZdgZd
d�Zy)�cmd_forest_setzQModify forest settings.

    This will alter the setting specified to value.
    Nz%prog value [options]rrrrrrr�valuec��|j�}|j|�}t|t�||��}|j	�}	|j
�d|	��}
t
j�}t
j||
�|_	t
j|tj|j�||j<|j|�|jjd|j�d|�d��y)Nrrzset r#r$)r%r&rrr'r(r*�Message�Dn�dn�MessageElement�FLAG_MOD_REPLACE�	attribute�modifyr-r.)r0rJrrrr
rr1r2r'r3�ms            r7r8zcmd_forest_set.rungs���
�
#�
#�
%���(�(��,���!�.�*:�"'�B�0���O�O�%�	�#�}�}�i�8�	�
�K�K�M���v�v�e�Y�'����.�.��3�'�'����9��$�.�.��	���Q���	�	���$�.�.�%�@�ArGr9)r:r;r<r=rQr(r>r?r@rArBrCrrDrE�
takes_argsr8rFrGr7rIrIOsk���
�I��H�&�H��)�)��-�-��.�.���	�t�W�#J���S�	2��M�
��J�BrGrIc��eZdZdZdZdgZy)�!cmd_forest_show_directory_servicez�Display Directory Service settings for the forest.

    These settings control how the Directory Service behaves on all domain
    controllers in the forest.
    �?CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration�dsheuristicsN)r:r;r<r=r(r,rFrGr7rVrV}s���
Q�H� �!�JrGrVc��eZdZdZdZdZy)�-cmd_forest_set_directory_service_dsheuristicsaySet the value of dsheuristics on the Directory Service.

    This value alters the behaviour of the Directory Service on all domain
    controllers in the forest. Documentation related to this parameter can be
    found here: https://msdn.microsoft.com/en-us/library/cc223560.aspx

    In summary each "character" of the number-string, controls a setting.
    A common setting is to set the value "2" in the 7th character. This controls
    anonymous search behaviour.

    Example: dsheuristics 0000002

    This would allow anonymous LDAP searches to the domain (you may still need
    to alter access controls to allow this).
    rWrXN)r:r;r<r=r(rQrFrGr7rZrZ�s���Q�H��IrGrZc�<�eZdZdZiZe�ed<e�ed<y)�cmd_forest_directory_servicez*Forest configuration partition management.�showrXN)r:r;r<r=�subcommandsrVrZrFrGr7r\r\�s$��4��K�;�=�K���"O�"Q�K��rGr\c�(�eZdZdZiZe�ed<y)�
cmd_forestzForest management.�directory_serviceN)r:r;r<r=r^r\rFrGr7r`r`�s����K�'C�'E�K�#�$rGr`)r*�samba.getopt�getoptr?�
samba.authr�samba.samdbr�samba.netcmdrrrrr
rIrVrZr\r`rFrGr7�<module>rgsm��&��%����-;�g�-;�`)B�W�)B�\"��"��N��(R�<�R�F��FrG

Zerion Mini Shell 1.0