HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/ipaclient/plugins/__pycache__/user.cpython-36.pyc
3

�d[e��@s�ddlmZddlmZddlmZddlmZddlmZddlmZddlm	Z	e�Z
e
ddd	�Gd
d�de��Ze
ddd	�Gdd
�d
e��ZdS)�)�MethodOverride)�errors)�Flag)�util)�Registry)�_)�x509T)�overrideZno_failcs(eZdZ�fdd�Z�fdd�Z�ZS)�user_delc#sJxtt|�j�D]
}|VqWtddtd�d�Vtddtd�d�VdS)Nz	preserve?�cliz9Delete a user, keeping the entry available for future use)�include�doczno_preserve?z
Delete a user)�superr
�get_optionsrr)�selfZoption)�	__class__��/usr/lib/python3.6/user.pyr"s
zuser_del.get_optionscsl|jjjdkrZ|jdd�}|jdd�}|r@|r@tjtd�d��n|rNd|d<n|rZd|d<tt|�j	||�S)Nr�no_preserveF�preservez+preserve and no-preserve cannot be both set)�reasonT)
Zapi�env�context�poprZMutuallyExclusiveErrorrrr
�forward)r�keys�optionsrr)rrrr0s
zuser_del.forward)�__name__�
__module__�__qualname__rr�
__classcell__rr)rrr
 sr
cseZdZ�fdd�Z�ZS)�	user_showcs�d|kr�tj|d�tt|�j||�}d|dkrxdd�|ddD�}tj||d�td�t|dd�|d<|St	j
|dd
��ntt|�j||�SdS)N�outZusercertificate�resultcss|]}tj|�VqdS)N)rZload_der_x509_certificate)�.0�crrr�	<genexpr>Fsz$user_show.forward.<locals>.<genexpr>z(Certificate(s) stored in file '%(file)s')�fileZsummary�)�entry���)rZcheck_writable_filerr!rrZwrite_certificate_listr�dictrZNoCertificateError)rrrr#Zcerts)rrrrAszuser_show.forward)rrrrr rr)rrr!?sr!N)
Zipaclient.frontendrZipalibrrrZipalib.plugablerrr�registerr
r!rrrr�<module>s