+
    4Ssiv                         ^ RI t ^ RIHt ^ RIHt ^ RIHt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)system_session)DS_DOMAIN_FUNCTION_2008DS_DOMAIN_FUNCTION_2008_R2)CommandCommandErrorOption)get_fsmo_roleowner)SamDB)functional_levelc                   
  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7      ]! RRRRR7      ]! RRR. R"ORRR7      ]! RRRR7      ]! RRRR7      .tR tR tV tR!# )#cmd_domain_functional_prepz#Domain functional level preparationz%prog [options]	sambaoptsversionoptscredoptsz-Hz--URLz%LDB URL for database or target serverURLH)helptypemetavardestz-qz--quietzBe quiet
store_true)r   actionz-vz	--verbosez
Be verbosez--function-levelchoiceFUNCTION_LEVEL2016z?The functional level to prepare for. Default is (Windows) 2016.)r   r   choicesr   defaultz--forest-prepzJRun the forest prep (by default, both the domain and forest prep are run).)r   r   z--domain-prepzJRun the domain prep (by default, both the domain and forest prep are run).c                8   R pVP                  R4      pVP                  R4      pVP                  4       pVP                  V4      pVP                  R4      pVP                  R4      p \        P                  ! V4      p	TP                  R4      p
TP                  R4      p\        T\        4       YeR	7      pTP                  R
4      f    TP                  R
R4       \        R4       RpT
f	   Tf   Rp
Rp\        P                  ! YP                  4       4      pT
'       d6   \        T\        TP!                  4       4      R4      pY8w  d   \        R4      hT'       d8   TP#                  4       pRT,           p\        TTR4      pY8w  d   \        R4      hRpT
'       da   Tf]   TP%                  4         ^ RIHp T! TRR7      pTP+                  . RO4       TP-                  T	\.        RR7       TP1                  4        T'       dN   TfJ   TP%                  4         ^ RIHp T! TRR7      pTP-                  T	\:        RR7       TP1                  4        T'       d   TP                  R
R4       Te   \        RT,          4      hR#   \
         d    \        RT R24      hi ; i  \2         d/   p\        RT,          4       TP5                  4        Tp Rp?LRp?ii ; i  \2         d/   p\        RT,          4       TP5                  4        Tp Rp?LRp?ii ; i)Fr   r   r   function_level'z1' is not known to Samba as an AD functional levelforest_prepdomain_prep)urlsession_infocredentialslpzdsdb:schema update allowedNyesz;Temporarily overriding 'dsdb:schema update allowed' settingTschemaz%This server is not the schema master.zCN=Infrastructure,infrastructurez-This server is not the infrastructure master.)ForestUpdate)fix)update_revisionzException: %s)DomainUpdatenoz%Failed to perform functional prep: %r)   6   O   P   Q   R   S   )getget_loadparmget_credentialsr   string_to_levelKeyErrorr   r
   r   setprintldbDnget_dsServiceNamer	   strget_schema_basedn	domain_dntransaction_startsamba.forest_updater*   check_updates_iteratorcheck_updates_functional_levelr   transaction_commit	Exceptiontransaction_cancelsamba.domain_updater-   r   )selfkwargsupdates_allowed_overriddenr   r   r&   credsr   r   target_levelr!   r"   samdbown_dnmasterrB   infrastructure_dnexception_encounteredr*   forester-   domains   &,                     E/usr/lib/python3/dist-packages/samba/netcmd/domain/functional_prep.pyruncmd_domain_functional_prep.run>   s   %*"JJ{+	::j)##%((,JJsO$45	f+;;NKL jj/jj/!.*:U 66./7FF/7OP)-&;#6KK6689's53J3J3L/M(02F"#JKK)I 4y @'/@(8:F"#RSS $08##%*<%e6--.JK55l6PFJ 6 L ((* 08##%*<%e655l6MFJ 6 L ((* &FF/6 ,F4 5 6 6 -O  	f>"22cdee	f^  *o)*((*()%*   *o)*((*()%*s=   )J 4AJ$ 8K  J!$K/$KK L+$LL N)2008_R220122012_R2r   )__name__
__module____qualname____firstlineno____doc__synopsisoptionsSambaOptionsVersionOptionsCredentialsOptionstakes_optiongroupsr   r@   takes_optionsrY   __static_attributes____classdictcell__)__classdict__s   @rX   r   r   $   s     - H 	W))w--G.. 	tW#JQT3	(tYZEt[|LI!:J=U	 	|`	b|`	bMS6 S6    r   )r=   samba.getoptgetoptre   
samba.authr   
samba.dsdbr   r   samba.netcmdr   r   r   samba.netcmd.fsmor	   samba.samdbr
   sambar   r   r[   rn   rX   <module>rw      s0   2   % J 6 6 0  "m6 m6rn   