+
    4Ssix                     x    ^ RI Ht ^ RIHt ^ 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 R	]4      tR# )
    N)ldb)system_session)security)
ndr_unpack)CommandCommandErrorOption)SamDBc            	          a  ] tR t^t o RtRtR]P                  R]P                  R]P                  /t
]! RRR]R	R
R7      ]! RRRRRR7      .tR.tRR ltRtV tR# )cmd_user_getgroupszqGet the direct group memberships of a user account.

The username specified on the command is the sAMAccountName.z%prog <username> [options]	sambaoptsversionoptscredoptsz-Hz--URLz%LDB URL for database or target serverURLH)helptypemetavardestz	--full-dnfull_dnF
store_truez)Display DN instead of the sAMAccountName.)r   defaultactionr   usernameNc                   VP                  4       pVP                  V4      p\        V\        4       WR 7      p	R\        P
                  ! V4      ,          p
 V	P                  V	P                  4       V
\        P                  . ROR7      pV^ ,          P                  R^ R7      p\        \        P                  V4      pVP                  4       w  rRV,          p\        V^ ,          P                  R^ R7      4      pV^ ,          P                  R4      pVf   . pR
TT3,          pRp
 T	P                  TT
\        P"                  R.R7      p\%        T^ ,          P&                  4      pT^ ,          P                  R4      pT'       dP   T P(                  P+                  RT,          4       T F%  pT P(                  P+                  RT,          4       K'  	  R# . pT FO  p T	P                  TT
\        P"                  R.R7      pTP-                  T^ ,          P                  R4      4       KQ  	  T P(                  P+                  RT,          4       T F%  pT P(                  P+                  RT,          4       K'  	  R#   \         d    \!        R	T,          4      hi ; i  \         d    \!        RT,          4      hi ; i  \         d    \!        RT,          4      hi ; i))urlsession_infocredentialslpz((&(sAMAccountName=%s)(objectClass=user))	objectSidmemberOfprimaryGroupID)base
expressionscopeattrs)idxz<SID=%s>NzUnable to find user '%s'z<SID=%s-%u>z(objectClass=group)sAMAccountNamez!Unable to find primary group '%s'z%s
zUnable to find group '%s')r    r!   r"   )get_loadparmget_credentialsr
   r   r   binary_encodesearch	domain_dnSCOPE_SUBTREEgetr   r   dom_sidsplitint
IndexErrorr   
SCOPE_BASEstrdnoutfwriteextend)selfr   r   r   r   r   r   r   credssamdbfilterresuser_sid_binaryuser_siduser_dom_siduser_riduser_sid_dn	user_pgiduser_groupsprimarygroup_sid_dnprimary_group_dnprimary_group_namegroup_dngroup_namesgdn
group_names   &&&&&&&                   =/usr/lib/python3/dist-packages/samba/netcmd/user/getgroups.pyruncmd_user_getgroups.run6   s    ##%((,!.*:"'0 =##H-.	H,,EOO$5*0%(%6%6&8  9C "!fjj!j<O!("2"2ODH'/~~'7$\$x/KCFJJ'7QJ?@Ia&**Z0K"  ,|Y.GG&	\,,$7*0%(^^&6%7  9C  #3q699~!$Q,<!= IIOOF%556'		 12 (CHll.4),*:); # = ""3q6::.>#?@  			!334%JIIOOFZ/0 &E  	H9XFGG	H  	\BFYZ[[	\"  H"#>##FGGHs'   CI< 'AJ AJ><JJ;>K )NNNNF)__name__
__module____qualname____firstlineno____doc__synopsisoptionsSambaOptionsVersionOptionsCredentialsOptionstakes_optiongroupsr	   r5   takes_options
takes_argsrN   __static_attributes____classdictcell__)__classdict__s   @rM   r   r      s     @ ,H 	W))w--G.. 	tW#JS	2{"?	A
M JB1 B1    r   )samba.getoptgetoptrW   sambar   
samba.authr   samba.dcerpcr   	samba.ndrr   samba.netcmdr   r   r	   samba.samdbr
   r   rP   ra   rM   <module>rj      s-   ,   % !   6 6 Y1 Y1ra   