%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/testparm.cpython-312.pyc |
� �fb$ � �R � d dl Z d dlZd dlZd dlmZ d dlmZmZm Z G d� de� Z y)� N)�Command�CommandError�Optionc � � e Zd ZdZdZej ej d�Z e de d�� e de d�� e d e d �� e de d�� e d ddd�� e ddddd�� e de d�� e dddd�� gZg Z dd�Z d� Zd� Zd� Zd� Zy) �cmd_testparmz$Syntax check the configuration file.z%prog [options])� sambaopts�versionoptsz--section-namez!Limit testparm to a named section)�type�helpz--parameter-namez#Limit testparm to a named parameterz --client-namezHClient DNS name for 'hosts allow' checking (should match reverse lookup)z--client-ipz,Client IP address for 'hosts allow' checkingz--suppress-prompt� store_trueFzSuppress prompt for enter)�action�defaultr z-vz --verbosezShow default options tooz--serverzSet %L macro to servernamez--show-all-parametersz*Show the parameters, type, possible valuesNc � � | rt d� �| rt d� �|� |�t d� � |j � }t j d� | j d� } | j d|j � | j d� | j || � }|xr | j || � }|�|�| j || ||� n�|�|�9|�# || }|j |j |� n` |j! ||� nL|s9| j"