+
    4Ssi                         ^ RI Ht ^ RIt^ RIHt ^ RI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)SamDB)system_session)_get_user_realm_domain)CommandCommandErrorSuperCommandOptionc            	          a  ] tR t^ t o RtRtR]P                  R]P                  R]P                  /t
]! RRR]R	R
R7      .tR.tRR ltRtV tR# )cmd_spn_listzList spns of a given user.z%prog <user> [options]	sambaoptscredoptsversionopts-H--URL%LDB URL for database or target serverURLHhelptypemetavardestuserNc                   VP                  4       pVP                  V4      p\        V\        4       WvR 7      p\	        W4      w  rpV P
                  P                  V	R,           4       VP                  R\        P                  ! V	4      ,          \        P                  R.R7      p\        V4      ^ 8  d   V^ ,          P                  R4      pVea   V P
                  P                  RV^ ,          P                  ,          4       V F%  pV P
                  P                  RV,          4       K'  	  R# V P
                  P                  RV^ ,          P                  ,          4       R# \        R	V,          4      h)
session_infocredentialslp
samaccountname=%sservicePrincipalName
expressionscopeattrsNz1User %s has the following servicePrincipalName: 
z	 %s
z$User %s has no servicePrincipalName
User %s not found)get_loadparmget_credentialsr   r   r   outfwritesearchldbbinary_encodeSCOPE_SUBTREElengetdnr   )selfr   r   r   r   r   r   credssamcleaneduserrealmdomainresspnses   &&&&&&         2/usr/lib/python3/dist-packages/samba/netcmd/spn.pyruncmd_spn_list.run1   s3    ##%((,AN$4 %. (>d'H$V		d*+jj*S->->{-KK##,B+C  E s8a<q6::45D		HFII AIIOOIM2  		 G #A		!* + 2T9::     NNNN__name__
__module____qualname____firstlineno____doc__synopsisoptionsSambaOptionsCredentialsOptionsVersionOptionstakes_optiongroupsr	   strtakes_options
takes_argsr<   __static_attributes____classdictcell____classdict__s   @r;   r   r       sj     $'H 	W))G..w-- 	tW#JS	2M
 J; ;r>   r   c            	          a  ] tR t^Ot o RtRtR]P                  R]P                  R]P                  /t
]! RRR]R	R
R7      .tRR.tRR ltRtV tR# )cmd_spn_addzCreate a new spn.z%prog <name> <user> [options]r   r   r   r   r   r   r   r   r   namer   Nc                (   VP                  4       pVP                  V4      p\        V\        4       WR 7      p	V	P	                  R\
        P                  ! V4      ,          \
        P                  R7      p
\        V
4      ^ 8w  d   \        RV,          4      h\        W)4      w  rpV	P	                  R\
        P                  ! V4      ,          \
        P                  R.R7      p
\        V
4      ^ 8  Ed   V
^ ,          P                   \
        P                  ! 4       pV
^ ,          P                  R4      p. pRp\
        P                  pVeF   V F/  p\        V4      V8X  d   R	pVP!                  \        V4      4       K1  	  \
        P"                  pVP!                  V4       V
^ ,          P                  Vn        \
        P$                  ! VVR4      VR&   V'       g   V	P'                  V4       R# \        R
V: RV: 24      h\        RV,          4      h)r   servicePrincipalName=%s)r#   r$   z5Service principal %s already affected to another userr    r!   r"   FNTzService principal z already affected to r&   )r'   r(   r   r   r+   r,   r-   r.   r/   r   r   r1   Messager0   FLAG_MOD_ADDrM   appendFLAG_MOD_REPLACEMessageElementmodify)r2   rV   r   r   r   r   r   r   r3   r4   r8   r5   r6   r7   msgr9   tabfoundflagr:   s   &&&&&&&             r;   r<   cmd_spn_add.run_   s    ##%((,AN$4 %.jj033D3DT3JJ##  % s8q=  ;=A B C C (>d'H$Vjj*S->->{-KK##,B+C  E s8a<FII++-Cq6::45DCE##DA1v~ $JJs1v&  ++JJtVYYCF*-*<*<S$=S+UC&'

3"8<d$D E E 2T9::r>   r?   r@   rA   rR   s   @r;   rU   rU   O   sm     .H 	W))G..w-- 	tW#JS	2M &!J*; *;r>   rU   c            	          a  ] tR t^t o RtRtR]P                  R]P                  R]P                  /t
]! RRR]R	R
R7      .tRR.tRR ltRtV tR# )cmd_spn_deletezDelete a spn.z%prog <name> [user] [options]r   r   r   r   r   r   r   r   r   rV   zuser?Nc                   VP                  4       pVP                  V4      p\        V\        4       WR 7      p	V	P	                  R\
        P                  ! V4      ,          \
        P                  RR.R7      p
\        V
4      ^ 8  Edb   RpVeY   \        V4      w  rpV
 F,  p\        VR,          4      P                  4       V8X  g   K*  TpK.  	  Vf   \        RV: RV: 24      hMS\        V
4      ^8w  d;   RpV
 F  pV: R	\        VP                  4      : 2pK!  	  \        R
V: RV: 24      hV
^ ,          p\
        P                  ! 4       pVP                  R4      p. pVeF   V F/  p\        V4      V8w  g   K  VP!                  \        V4      4       K1  	  \
        P"                  pVP                  Vn        \
        P$                  ! VXR4      VR&   V	P'                  V4       R# \        RV,          4      h)r   rX   r!   samAccountNamer"   NzUnable to find user z
 with spn  r   zMore than one user has the spn zA and no specific user was specified, list of users with this spn:z!Service principal %s not affected)r'   r(   r   r   r+   r,   r-   r.   r/   r   rM   lowerr   r1   rY   r0   r[   r\   r]   r^   )r2   rV   r   r   r   r   r   r   r3   r4   r8   resultr5   r6   r7   elemlistUserrr_   r9   r`   r:   rb   s   &&&&&&&                r;   r<   cmd_spn_delete.run   s   ##%((,AN$4 %.jj033D3DT3JJ##)+;<  > s8a<F/Ed/K,VD4 01288:kI!%   >&48$(@ A A " s8q=!H /7QTT#C !&>BH(N O O !VF++-C::45DCA1v~

3q6*  ++YYCF*-*<*<S$=S+UC&'JJsOBTIJJr>   r?   )NNNNNrA   rR   s   @r;   re   re      so     .H 	W))G..w-- 	tW#JS	2M
 '"J,K ,Kr>   re   c                   Z    ] tR t^tRt/ t]! 4       ]R&   ]! 4       ]R&   ]! 4       ]R&   Rt	R# )cmd_spnz(Service Principal Name (SPN) management.addlistdeleter?   N)
rB   rC   rD   rE   rF   subcommandsrU   r   re   rP   r?   r>   r;   rp   rp      s/    2K$K&.K*,Kr>   rp   )samba.getoptgetoptrH   r,   samba.samdbr   
samba.authr   samba.netcmd.commonr   samba.netcmdr   r   r   r	   r   rU   re   rp   r?   r>   r;   <module>r{      sU   &  
  % 6 ,;7 ,;^:;' :;z=KW =K@-l -r>   