+
    ç‹cj  ã                   ó^   € R t Rt^ RIt^ RIHt ^ RIHt RtRtRt	Rt
R	 tRR
 ltRR ltR tR# )z/Functions for setting up a Samba configuration.ÚrestructuredTextN)Úread_and_sub_file)Ú	setup_dirÚFULLÚ	SUBDOMAINÚNT4SYNCÚDRSc                óÄ   € \         P                  P                  \        4       V 4      p\         P                  P	                  V4      '       g   \        RV,          4      hV# )zHReturn an absolute path to the provision template file specified by filez>File [%s] not found. Please install samba-ad-provision package)ÚosÚpathÚjoinr   ÚexistsÚ	Exception)Úfiler   s   & Ú8/usr/lib/python3/dist-packages/samba/provision/common.pyÚ
setup_pathr   (   sB   € ä�7‰7�<‰<œ	› TÓ*€DÜ�7‰7�>‰>˜$×ÒÜÐXÐ[_Õ_Ó`Ð`Ø€Kó    c                ó|   € Vf   R.p\        V\        4      '       g   Q h\        W4      pV P                  WC4       R# )a  Setup a ldb in the private dir.

:param ldb: LDB file to import data into
:param ldif_path: Path of the LDIF file to load
:param subst_vars: Optional variables to substitute in LDIF.
:param nocontrols: Optional list of controls, can be None for no controls
Núrelax:0)Ú
isinstanceÚstrr   Úadd_ldif©ÚldbÚ	ldif_pathÚ
subst_varsÚcontrolsÚdatas   &&&& r   Úsetup_add_ldifr   0   s:   € ð ÒØ�;ˆÜ�i¤×%Ò%Ð%Ð%Ü˜YÓ3€DØ‡L�L�Ö r   c                óL   € Vf   R.p\        W4      pV P                  WC4       R# )z Modify a ldb in the private dir.

:param ldb: LDB object.
:param ldif_path: LDIF file path.
:param subst_vars: Optional dictionary with substitution variables.
Nr   )r   Úmodify_ldifr   s   &&&& r   Úsetup_modify_ldifr!   ?   s'   € ð ÒØ�;ˆÜ˜YÓ3€DØ‡O�O�DÖ#r   c                ó˜   € V f   Q hV P                  4         \        WV4       V P                  4        R#    T P                  4        h ; i)a  Import a LDIF a file into a LDB handle, optionally substituting
variables.

:note: Either all LDIF data will be added or none (using transactions).

:param ldb: LDB file to import into.
:param ldif_path: Path to the LDIF file.
:param subst_vars: Dictionary with substitution variables.
N)Útransaction_startr   Útransaction_commitÚtransaction_cancel)r   r   r   s   &&&r   Ú	setup_ldbr&   L   sM   € ð Š?Ðˆ?Ø×ÑÔð!Ü�s zÔ2ð
 	×ÑÖ øð	Ø×ÑÔ Øús	   ˜6 ¶A	)NN)Ú__doc__Ú__docformat__r
   Úsambar   Úsamba.paramr   Ú	FILL_FULLÚFILL_SUBDOMAINÚFILL_NT4SYNCÚFILL_DRSr   r   r!   r&   © r   r   Ú<module>r0      s@   ðñ4 6à"€ã 	Ý #Ý !à€	Ø€Ø€Ø€òô!ô
$ô!r   