+
    4Ssi                         ^ RI HtHtHtHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIt^ RIHtHt ^ RIHt ^ RIt ! R R]4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )    )CommandCommandErrorOptionSuperCommandN)SamDB)system_session)miscdrsuapi)drs_Replicatec                   ,   a  ] tR t^t o R tR tRtV tR# )RODCExceptionc                    Wn         R # )Nvalue)selfr   s   &&3/usr/lib/python3/dist-packages/samba/netcmd/rodc.py__init__RODCException.__init__   s    
    c                P    V P                   P                  : R V P                  : 2# )z: )	__class____name__r   )r   s   &r   __str__RODCException.__str__!   s    >>22DJJ??r   r   N)r   
__module____qualname____firstlineno__r   r   __static_attributes____classdictcell____classdict__s   @r   r   r      s     @ @r   r   c                       ] tR t^%tRtR# )NamingError Nr   r   r   r   r   r$   r   r   r#   r#   %       r   r#   c                       ] tR t^)tRtR# )ReplicationErrorr$   Nr%   r$   r   r   r(   r(   )   r&   r   r(   c                      a  ] tR t^-t o RtRtR]P                  R]P                  R]P                  /t
]! RR]R7      ]! R	R
]R7      ]! RRRR7      .tR.tR tR tRtV tR# )cmd_rodc_preloadzBPreload accounts for an RODC.  Multiple accounts may be requested.z/%prog (<SID>|<DN>|<accountname>)+ ... [options]	sambaoptsversionoptscredoptsz--serverz	DC to use)helptypez--filez<Read account list from a file, or - for stdin (one per line)z--ignore-errorsz<When preloading multiple accounts, skip any failing accounts
store_true)r.   actionzaccount*c                   VR,          R8X  d,   VP                  RV,          R\        P                  . R7      pMwVP                  R4      ^ 8  d%   VP                  VR\        P                  . R7      pM=VP                  R\        P                  ! V4      ,          \        P
                  . R7      p\        V4      ^8w  d   \        R	V,          4      h\        V^ ,          R
,          4      # )zwork out what DN they meant:r      NzS-z<SID=%s>zobjectclass=user)base
expressionscopeattrs=z((&(samAccountName=%s)(objectclass=user)))r5   r6   r7   zFailed to find account '%s'dn)	searchldb
SCOPE_BASEfindbinary_encodeSCOPE_SUBTREElenr#   str)r   samdbaccountress   &&& r   get_dncmd_rodc_preload.get_dn@   s     3<4,,J$8*<%(^^2  ?C \\#!#,,G*<%(^^2  ?C ,,*TWZWhWhipWq*q%(%6%6b  BCs8q=;gEFF3q6$<  r   c           	        VP                  R 4      pVP                  R4      pVP                  R4      pVP                  R4      pVP                  R4      pVf   \        R4      hVes   . pVR8X  d8   \        P                   F"  pVP	                  VP                  4       4       K$  	  M2\        VR4       F"  pVP	                  VP                  4       4       K$  	  VP                  4       p	VP                  V	R	R
7      p
\        RV,          \        4       WR7      p\        R\        4       WR7      p\        P                  ! VP                  4       4      pRpV	P                  4       ^	8  d
   VR,          p\        RV: RV: R2WW4      p. pV F  pVP!                  4       pVP#                  V\$        P&                  R.R7      p\        P                  ! VP)                  RV^ ,          R,          ^ ,          4      4      p V P+                  VV4      pT P2                  P5                  RT,          4       TP7                  4         TP9                  TTT\:        P<                  R	R7       TPC                  4        K  	  \E        V4      ^ 8  d5   V PG                  R4       V F  pV PG                  RV,          4       K  	  R# R#   \,         d:   pT'       g   \/        \1        T4      4      hTP	                  T4        Rp?EKt  Rp?ii ; i  \         dX   pTP?                  4        T'       g   \/        RT,          4      hTP	                  \A        RT,          4      4        Rp?EK  Rp?ii ; i)r+   r-   serverfileignore_errorsNzYou must supply a server-rT)fallback_machinez	ldap://%s)urlsession_infocredentialslpsealz,printzncacn_ip_tcp:[]invocationId)r4   r6   r7   
objectGUIDzReplicating DN %s
)exoprodczError replicating DN %sz'
Preload encountered problematic users:z    %s)$get	Exceptionsysstdinappendstripopenget_loadparmget_credentialsr   r   r	   GUIDget_ntds_GUID	log_levelr   get_dsServiceNamer:   r;   r<   schema_format_valuerE   r   r   rA   outfwritetransaction_start	replicater
   DRSUAPI_EXOP_REPL_SECRETtransaction_cancelr(   transaction_commitr@   message)r   accountskwargsr+   r-   rH   accounts_filerJ   linerQ   credsrB   local_samdbdestination_dsa_guidbinding_optionsreplerrorsrC   
dc_ntds_dnrD   source_dsa_invocation_idr9   eerrors   &*,                     r   runcmd_rodc_preload.runS   s   JJ{+	::j)H%

6*

?3>677$H#IIDOODJJL1 & !4DOODJJL1 5 ##%((d(C +.#1#3"'0 >3C(-6  $yy)B)B)DE <<>Qx'OfoN(@ G002J,,Jcnn^L\,]C'+yy1P1PQ]_bcd_eft_uvw_x1y'z$[[0 IIOO1B67))+r#;=Q$+$D$D4  Q **,7  : v;?LLCDX-.   + ! $&s1v..a 	  ..0$&'@2'EFF./H2/MNOs1   K$LL-LLM-AM((M-r$   N)r   r   r   r   __doc__synopsisoptionsSambaOptionsVersionOptionsCredentialsOptionstakes_optiongroupsr   rA   takes_options
takes_argsrE   r}   r   r   r    s   @r   r*   r*   -   s     L@H 	W))w--G.. 	z#6x\cfg 'enz{M J!&I/ I/r   r*   c                   2    ] tR t^tRt/ t]! 4       ]R&   RtR# )cmd_rodcz.Read-Only Domain Controller (RODC) management.preloadr$   N)r   r   r   r   r   subcommandsr*   r   r$   r   r   r   r      s    8K-/K	r   r   )samba.netcmdr   r   r   r   samba.getoptgetoptr   samba.samdbr   
samba.authr   r;   samba.dcerpcr	   r
   samba.drs_utilsr   r[   rZ   r   r#   r(   r*   r   r$   r   r   <module>r      sd   & E D   % 
 & ) 
@I @	- 		} 	o/w o/d0| 0r   