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: //usr/lib/python3.6/site-packages/ipaclient/plugins/__pycache__/certmap.cpython-36.opt-1.pyc
3

�d[e<�@sfddlmZddlmZmZddlmZddlmZddl	m
Z
e�Zeddd�Gdd	�d	e��Zd
S)�)�MethodOverride)�errors�x509)�
BinaryFile)�Registry)�_T)�overrideZno_failcsNeZdZeded�ed�dd�fZ�fdd�Z�fdd	�Z�fd
d�Z�Z	S)�
certmap_matchzfile?z
Input filez!File to load the certificate from�cli)Zlabel�doc�includec#s:x4tt|�j�D]"}|jdks,|jjjdkr|VqWdS)N�certificater
)�superr	�get_args�name�api�env�context)�self�arg)�	__class__��/usr/lib/python3.6/certmap.pyrszcertmap_match.get_argsc#s`x<tt|�j�D]*}|jdkr|jjjdkr|jdd�VqWxtt|�j�D]
}|VqNWdS)Nr
r
F)Zrequired)	rr	rrrrrZclone�get_options)rrZoption)rrrrs
zcertmap_match.get_optionscsl|jjjdkrZ|r*d|kr*tjtd�d��|r@tj|d�g}nd|krV|jd�g}ng}t	t
|�j||�S)Nr
r
z,cannot specify both raw certificate and file)�reasonr)rrrrZMutuallyExclusiveErrorrrZload_unknown_x509_certificate�poprr	�forward)r�argsZoptions)rrrr%szcertmap_match.forward)
�__name__�
__module__�__qualname__rrZ
takes_argsrrr�
__classcell__rr)rrr	s
r	N)
Zipaclient.frontendrZipalibrrZipalib.parametersrZipalib.plugablerZipalib.textr�registerr	rrrr�<module>s