%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/netcmd/domain/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/netcmd/domain/__pycache__/level.cpython-312.pyc |
� S��d?. � �v � d dl Z d dlmZ d dlmZ d dlmZmZ d dl m Z mZmZ d dl mZ d dlmZ G d� de � Zy) � N)�system_session)�check_and_update_fl�DS_DOMAIN_FUNCTION_2000)�Command�CommandError�Option)�SamDB)�functional_levelc �� � e Zd ZdZdZej ej ej d�Z e dddedd� � e d ddd �� e ddg d�d�� e ddg d�d�� gZdgZ dd�Zy)�cmd_domain_levelz(Raise domain and forest function levels.z&%prog (show|raise <options>) [options])� sambaopts�credopts�versionoptsz-Hz--URLz%LDB URL for database or target server�URL�H)�help�type�metavar�destz-qz--quietzBe quiet� store_true)r �actionz--forest-level�choice)�2003�2008�2008_R2�2012�2012_R2�2016zIThe forest function level (2003 | 2008 | 2008_R2 | 2012 | 2012_R2 | 2016))r �choicesr z--domain-levelzIThe domain function level (2003 | 2008 | 2008_R2 | 2012 | 2012_R2 | 2016)� subcommandNc � � ���������� |dvrt d|z � �|j � } |j | d�� } t |t � | | �� ��j � �d}|dk( r2|�|j d� s�j � d} t �| � �j d �j � z t j d g�� } t | � dk( sJ ��j �t j d d g�� }t |� dk( sJ ��j d �j � z t j d�z d g�� �t �� dk( sJ ��j d�j � z t j dd g�� }t |� dk\ sJ �t"