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__/idrange.cpython-36.pyc
3

�d[eL
�@sJddlmZddlmZddlmZe�Zeddd�Gdd�de��ZdS)	�)�MethodOverride)�Registry)�apiT)�overrideZno_failc@seZdZdd�ZdS)�idrange_addcs�t�fdd�dD��}�jdd�}�jdd�}�jdd�}��fd	d
�}|rf|dkr�|dkr�|d�nftjd�d
}|r�|dkr�|d�|dkr�|d�n0|dk	r�|dkr�|d�|dkr�|dk	r�|d�dS)an
        Ensure that rid-base is prompted for when dom-sid is specified.

        Also ensure that secondary-rid-base is prompted for when rid-base is
        specified and vice versa, in case that dom-sid was not specified.

        Also ensure that rid-base and secondary-rid-base is prompted for
        if ipa-adtrust-install has been run on the system.
        c3s|]}|�kVqdS)N�)�.0Zdom_id)�kwr�/usr/lib/python3.6/idrange.py�	<genexpr>-sz:idrange_add.interactive_prompt_callback.<locals>.<genexpr>�ipanttrusteddomainname�ipanttrusteddomainsidZ
ipabaseridNZipasecondarybaseridZiparangetypecs&�j�j|�}||i}�j|�dS)N)Zprompt_paramZparams�update)Zparam�valuer)r	�selfrr
�set_from_prompt4sz@idrange_add.interactive_prompt_callback.<locals>.set_from_promptzipa-ad-trust-posix�adtrust_is_enabled�result)rr
)�any�getrZCommand)rr	Zdom_sid_setZrid_baseZsecondary_rid_baseZ
range_typerrr)r	rr
�interactive_prompt_callbacks&


z'idrange_add.interactive_prompt_callbackN)�__name__�
__module__�__qualname__rrrrr
rsrN)Zipaclient.frontendrZipalib.plugablerZipalibr�registerrrrrr
�<module>s