%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/samba/netcmd/domain/auth/__pycache__/ |
| Current File : //lib/python3/dist-packages/samba/netcmd/domain/auth/__pycache__/silo.cpython-312.pyc |
�
�I�d�: � �� � d dl mZ d dlmZmZmZmZ d dlm Z m
Z
d dlmZ ddl
mZ G d� de� Z G d � d
e� Z G d� de� Z G d
� de� Z G d� de� Z G d� de� Zy)� N)�Command�CommandError�Option�SuperCommand)�AuthenticationPolicy�AuthenticationSilo)�
ModelError� )�cmd_domain_auth_silo_memberc � � e Zd ZdZdZej ej d�Z e ddde
dd� � e d
ddd
d�� gZ dd�Zy)�cmd_domain_auth_silo_listz(List authentication silos on the domain.�%prog -H <URL> [options]�� sambaopts�credopts�-H�--URL�&LDB URL for database or target server.�URL�ldap_url��help�type�metavar�destz--jsonzOutput results in JSON format.�
output_format�store_const�json)r r �action�constNc �x � | j |||� } t j |� D �ci c] }|j |j � �� }}|dk( r| j |� y |j � D ] }| j j |� d�� �" y c c}w # t
$ r}t
|� �d }~ww xY w)Nr �
)�ldb_connectr �query�cn�as_dictr r �
print_json�keys�outf�write) �selfr r r r �ldb�silo�silos�es �?/usr/lib/python3/dist-packages/samba/netcmd/domain/auth/silo.py�runzcmd_domain_auth_silo_list.run0 s� � � ���x��H�=�� "�!3�!9�!9�#�!>�@�� �W�W�d�l�l�n�,� @�E� @� �F�"��O�O�E�"��
�
��
-��� � ���4�&���,�
-��@��� "��q�/�!�� "�s( �B �"B�B �B � B9�)B4�4B9�NNNN�
�__name__�
__module__�__qualname__�__doc__�synopsis�options�SambaOptions�CredentialsOptions�takes_optiongroupsr �str�
takes_optionsr1 � � r0 r
r
sg � �2�)�H� �)�)��.�.��� �t�W�#K���Z� 9��x�>�#�M�� I��M� ;?��-r@ r
c � � e Zd ZdZdZej ej d�Z e ddde
dd� � e d
ddd
e
�� gZdd�Zy)�cmd_domain_auth_silo_viewz*View an authentication silo on the domain.r r r r r r r r �--namez/Name of authentication silo to view (required).�name�store�r r r r Nc � � |st d� �| j |||� } t j ||�� }|�t d|� d�� �| j |j
� � y # t $ r}t |� �d }~ww xY w)N�Argument --name is required.�r% �Authentication silo � not found.)r r# r �getr r'