+
    4Ssi                     x    ^ RI Ht ^ RIHt ^ RIHt ^ RIHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHt  ! R R	]4      tR# )
    N)ldb)system_session)CommandCommandErrorOption)SamDB)security)
ndr_unpackc            	          a  ] tR t^t o RtRt]! RRR]RRR7      ]! R	R
]RR7      ]! RRRR7      .tR.t	R]
P                  R]
P                  R]
P                  /tRR ltRtV tR# )cmd_user_disablezDisable a user.z.%prog (<username>|--filter <filter>) [options]z-Hz--URLz%LDB URL for database or target serverURLH)helptypemetavardestz--filterzLDAP filter to select usersearch_filter)r   r   r   z--remove-supplemental-groupsz!Remove user's supplemental groups
store_true)r   actionz	username?	sambaoptscredoptsversionoptsNc                   Vf   Vf   \        R4      hVf   R\        P                  ! V4      ,          pVP                  4       pVP	                  VRR7      p	\        V\        4       WR7      p
V
P                  4         V
P                  V
P                  4       V\        P                  R.RR.R	7      pV^ ,          P                  R4      pVf   . pV^ ,          P                  R^ R
7      p\        \        P                  V4      p\%        T4      ^8  d-   T
P!                  4        \        RT;'       g    T,          4      hT'       d2   T F+  p T
P'                  \)        T4      \)        T4      .RR7       K-  	   T
P+                  T4       T
P-                  4        R #   \         d.    T
P!                  4        \        RT;'       g    T,          4      h\"         d4   pT
P!                  4        \        RT;'       g    T: RT: R24      hR p?ii ; i  \"         d)   pT
P!                  4        \        RT: RT: 24      hR p?ii ; i  \"         d3   pT
P!                  4        \        RT;'       g    T: RT: 24      hR p?ii ; i)Nz4Either the username or '--filter' must be specified!z((&(objectClass=user)(sAMAccountName=%s))T)fallback_machine)urlsession_infocredentialslpzextended_dn:1:1	objectSidmemberOf)base
expressionscopecontrolsattrs)idxzUnable to find user '%s'zFailed to find user 'z': ''zFound more than one user '%s'F)add_members_operationz"Failed to remove user from group 'z': zFailed to disable user ')r   r   binary_encodeget_loadparmget_credentialsr   r   transaction_startsearch	domain_dnSCOPE_SUBTREEgetr
   r	   dom_sid
IndexErrortransaction_cancel	Exceptionlenadd_remove_group_membersstrdisable_accounttransaction_commit)selfusernamer   r   r   r   r   remove_supplemental_groupsr   credssamdbresuser_groupsuser_binary_siduser_sidmsg
user_groups   &&&&&&&&         ;/usr/lib/python3/dist-packages/samba/netcmd/user/disable.pyruncmd_user_disable.run8   s     5UVV F!!(+-M ##%((d(C!.*:"'0 	!	@,,EOO$5*7%(%6%6):(;&1:%>	  @C
 a&**Z0K" !!fjj!j<O!("2"2ODH s8a<$$&>'88= : ; ; &)
G223z?47M?IN 3 P *	1!!-0
 	  "=  	;$$&9'88= : ; ; 	@$$&'88=8# ? @ @	@ ! G,,.&5?(F G GG  	1$$&))M)3 0 1 1	1sU   ?BF 'H<I )H	HH .HHI	!#II	J	-JJ	 )NNNNNNF)__name__
__module____qualname____firstlineno____doc__synopsisr   r7   takes_options
takes_argsoptionsSambaOptionsCredentialsOptionsVersionOptionstakes_optiongroupsrF   __static_attributes____classdictcell__)__classdict__s   @rE   r   r      s     ?H 	tW#JQT3	(z0#	% 	-7"	$
M J 	W))G..w--:# :#    r   )samba.getoptgetoptrQ   sambar   
samba.authr   samba.netcmdr   r   r   samba.samdbr   samba.dcerpcr	   	samba.ndrr
   r   rH   rY   rE   <module>rb      s-   ,   % 6 6  !  S#w S#rY   