+
    4Ssi                         ^ RI Ht ^ RIHtHt ^ RIHt ^ RIH	t	H
t
HtHt  ! R R]	4      t ! R R]	4      t ! R	 R
]	4      t ! R R]4      tR# )    N)AuthenticationPolicyUser)
ModelError)CommandCommandErrorOptionSuperCommandc            	          a  ] tR t^t o RtRtR.tR]P                  R]P                  R]P                  /t]! RRR	R
]RR7      .tRR ltRtV tR# )cmd_user_auth_policy_assignz1Set the assigned authentication policy on a user.%prog <username> [options]username	sambaoptscredoptshostoptsz--policyzAuthentication policy name.storepolicy_nameT)helpactiondesttyperequiredNc                   V P                  W#V4      p \        P                  ! Wa4      p\        P                  ! WeR 7      pTf   \        RT R24      hTf   \        RT R24      hTP                  Tn         TP                  T4       \        RT RT 2T P                  R7       R#   \
         d   p	\        T	4      hRp	?	ii ; i  \
         d   p	\        RT	 24      hRp	?	ii ; i))nameNUser  not found.zAuthentication policy z+Set assigned authentication policy failed: # assigned to authentication policy file)ldb_connectr   findr   getr   r   dnassigned_policysaveprintoutf)
selfr   r   r   r   r   ldbuserpolicyes
   &&&&&&    ?/usr/lib/python3/dist-packages/samba/netcmd/user/auth/policy.pyruncmd_user_auth_policy_assign.run/   s     xH=	"99S+D)--cDF
 <xj<==>!7}KPQQ  &yy	RIIcN 	hZB6(K99	#  	"q/!	"  	R!LQCPQQ	Rs/   -B) 9C )C4B??CC%C  C% )NNNN)__name__
__module____qualname____firstlineno____doc__synopsis
takes_argsoptionsSambaOptionsCredentialsOptionsHostOptionstakes_optiongroupsr   strtakes_optionsr-   __static_attributes____classdictcell____classdict__s   @r,   r   r      si     ;+HJ 	W))G..G'' 	z =Md	LM
     r   c                      a  ] tR t^Lt o RtRtR.tR]P                  R]P                  R]P                  /tR
R ltR	tV tR# )cmd_user_auth_policy_removez4Remove the assigned authentication policy on a user.r   r   r   r   r   Nc                   V P                  W#V4      p \        P                  ! WQ4      pTf   \	        RT R24      hTP
                  '       d$    \        P                  ! YVP
                  R7      pMR pR Tn         TP                  T4       \        RT RT 2T P                  R7       R #   \         d   p\	        T4      hR p?ii ; i  \         d   p\	        T4      hR p?ii ; i  \         d   p\	        RT 24      hR p?ii ; i)Nr   r   r"   z.Remove assigned authentication policy failed: z$ removed from authentication policy r   )r   r   r    r   r   r#   r   r!   r$   r%   r&   )	r'   r   r   r   r   r(   r)   r+   r*   s	   &&&&&    r,   r-   cmd_user_auth_policy_remove.runY   s   xH=	"99S+D
 <xj<== &-11#:N:NO F  $	UIIcN 	hZCF8L99	1  	"q/!	"  &"1o%&  	U!OPQsSTT	UsG   B, !C
 <C( ,C7CC
C%C  C%(D3DDr/   NNNr0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r-   r>   r?   r@   s   @r,   rD   rD   L   sI     >+HJ 	W))G..G'' rB   rD   c                      a  ] tR t^{t o RtRtR.tR]P                  R]P                  R]P                  /tR
R ltR	tV tR# )cmd_user_auth_policy_viewz:View the current assigned authentication policy on a user.r   r   r   r   r   Nc                   V P                  W#V4      p \        P                  ! WQ4      pVf   \        RV R24      hVP                  '       d#   \
        P                  ! WVP                  R7      pMR p V'       d    \        RV RV 2V P                  R7       R # \        RV R2V P                  R7       R #   \         d   p\        T4      hR p?ii ; i)Nr   r   rF   r   r   z' has no assigned authentication policy.)
r   r   r    r   r#   r   r!   r   r%   r&   )	r'   r   r   r   r   r(   r)   r*   r+   s	   &&&&&    r,   r-   cmd_user_auth_policy_view.run   s    xH=	"99S+D |"U8*K#@AA###-11#:N:NO
 E(#FvhOyy" E(#JKyy"  	"q/!	"s#   :B8 !B8 1B8 8CCCr/   rH   rI   r@   s   @r,   rK   rK   {   sI     D+HJ 	W))G..G''" "rB   rK   c                   H    ] tR t^tRtR]! 4       R]! 4       R]! 4       /tRt	R# )cmd_user_auth_policyz)Manage authentication policies on a user.assignremoveviewr/   N)
r0   r1   r2   r3   r4   r   rD   rK   subcommandsr>   r/   rB   r,   rO   rO      s)    3 	-/-/)+KrB   rO   )samba.getoptgetoptr7   samba.domain.modelsr   r   samba.domain.models.exceptionsr   samba.netcmdr   r   r   r	   r   rD   rK   rO   r/   rB   r,   <module>rY      sI   .  : 5 D D,' ,^,' ,^%" %"P< rB   