%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/ |
| Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/forest.cpython-312.pyc |
�
�I�d4 � �� � d dl Z d dlmZ d dlmZ d dlmZ d dlm Z m
Z
mZmZ G d� de � Z
G d� de � Z G d � d
e
� Z G d� de� Z G d
� de� Z G d� de� Zy)� N)�system_session)�SamDB)�Command�CommandError�SuperCommand�Optionc � � e Zd ZdZdZej ej ej d�Z e
dddedd� � gZdd�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
| t j | j �� }
|
d }| j j d| z � | j D ]* } | j j |�d|| d �d�� �, y # t $ r! | j j d|z � Y �Ww xY w) N��url�session_info�credentials�lp�,)�base�scope�attrsr zSettings for %s
�: �
z%s: <NO VALUE>
)
�get_loadparm�get_credentialsr r � domain_dn�objectdn�search�ldb�
SCOPE_BASE�
attributes�outf�write�KeyError)
�selfr r r r
r �creds�samdbr'