%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/provision/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/provision/__pycache__/__init__.cpython-312.pyc |
� �de6� � 1 �@ � d Z dZddlmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlZddlZddlmZmZ ddlmZ ddlZddlmZ ddlmZmZ dd lmZ dd lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z'm(Z( ddl)m*Z*m+Z+ dd lm,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z9m:Z:m;Z; ddl<m=Z=m>Z> ddl?m@Z@ ddlAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZV ddlWmXZXmYZYmZZZm[Z[m\Z\m]Z]m^Z^ ddl_m`Z`maZambZbmcZc ddldZddleZddlfmgZg ddlhmiZi ddljmkZk ddllmmZm ddlhmnZn ddlmoZo dZpdZqdZrdZsd Zt G d!� d"eu� Zv G d#� d$eu� Zwd%� Zxdhd'�Zyd(� Zzd)� Z{d*� Z| G d+� d,eu� Z}d-� Z~d.� Zd/� Z�d0� Z�d1� Z�d2� Z� did3�Z� djd4�Z�d5� Z� dkd6�Z�ddddd7e+fd8�Z�d9� Z�d:� Z�d;� Z�d<� Z�d=� Z�d>� Z� dld?�Z�d@� Z�dA� Z�dB� Z�dCZ� dmdD�Z� dndE�Z�dFZ�dGZ�dHZ�e�fdI�Z�dJ� Z�dK� Z�dL� Z�dM� Z�dN� Z�dO� Z�dhdP�Z�dQ� Z�dde[dddRdddddddddddddd&dd&d&ddfdS�Z�dTdUdVdVdVdUdVdVdUdTdTdW�Z�dX� Z�dY� Z�dodZ�Z�dpd[�Z�dpd\�Z�dde[ddddddddddddRddddddddddddddddddddd&d&dd&d&ddd]d^e2d&ddd&f1d_�Z� dqd`�Z�da� Z� G db� dce�� Z� G dd� dee�� Z� G df� dge�� Z�y)rz/Functions for setting up a Samba configuration.�restructuredText� )� b64encodeN)�system_session� admin_session)�system_session_unix)�auth)�smbd�passdb)�param) �Ldb�MAX_NETBIOS_NAME_LEN�check_all_substituted�is_valid_netbios_char� setup_file�substitute_var�valid_netbios_name�version�is_heimdal_built)�security�misc)�SEC_CHAN_BDC�SEC_CHAN_WKSTA)�DS_DOMAIN_FUNCTION_2000�DS_DOMAIN_FUNCTION_2003�DS_DOMAIN_FUNCTION_2008�DS_DOMAIN_FUNCTION_2008_R2�DS_DOMAIN_FUNCTION_2012�DS_DOMAIN_FUNCTION_2012_R2�DS_DOMAIN_FUNCTION_2016� ENC_ALL_TYPES)�IDmapDB)�read_ms_ldif)�setntacl�getntacl�dsacl2fsacl)�ndr_pack� ndr_unpack)� LDBBackend)�get_deletedobjects_descriptor�get_empty_descriptor�get_config_descriptor� get_config_partitions_descriptor�get_config_sites_descriptor�!get_config_ntds_quotas_descriptor�'get_config_delete_protected1_descriptor�)get_config_delete_protected1wd_descriptor�'get_config_delete_protected2_descriptor�get_domain_descriptor�$get_domain_infrastructure_descriptor�get_domain_builtin_descriptor�get_domain_computers_descriptor�get_domain_users_descriptor�!get_domain_controllers_descriptor�'get_domain_delete_protected1_descriptor�'get_domain_delete_protected2_descriptor�get_dns_partition_descriptor�'get_dns_forest_microsoft_dns_descriptor�'get_dns_domain_microsoft_dns_descriptor�'get_managed_service_accounts_descriptor)� setup_path�setup_add_ldif�setup_modify_ldif� FILL_FULL�FILL_SUBDOMAIN�FILL_NT4SYNC�FILL_DRS)�get_dnsadmins_sid�setup_ad_dns�create_dns_dir_keytab_link�create_dns_update_list)�Schema)�SamDB)�dbcheck)�create_kdc_conf)�get_default_backend_store)�functional_levelz$31B2F340-016D-11D2-945F-00C04FB984F9z$6AC1786C-016F-11D2-945F-00C04FB984F9zDefault-First-Site-Name�lastProvisionUSN� c � � e Zd Zd� Zy)�ProvisionPathsc �� � d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ y �N)� shareconf�hklm�hkcu�hkcr�hku�hkpd�hkpt�samdb�idmapdb�secrets�keytab� dns_keytab�dns�winsdb�private_dir�binddns_dir� state_dir��selfs �:/usr/lib/python3/dist-packages/samba/provision/__init__.py�__init__zProvisionPaths.__init__� s{ � ������ ��� ��� ������ ��� ��� ���������������������������� N��__name__� __module__�__qualname__ri � rj rh rR rR � s � �rj rR c � � e Zd Zd� Zy)�ProvisionNamesc � � d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ d | _ i | _ y rT )�ncs�rootdn�domaindn�configdn�schemadn�dnsforestdn�dnsdomaindn� ldapmanagerdn� dnsdomain�realm�netbiosname�domain�hostname�sitename�smbconf� domainsid� forestsid� domainguid�name_maprf s rh ri zProvisionNames.__init__� s� � ��������� ��� ��� �������!�������� ��������� ��� ��������������� rj Nrk ro rj rh rq rq � s � �rj rq c �N � t � }d|_ |j d� j � |_ |j d� |_ |j j � |_ t j |j � }|j j � |_ |j d|j z dt j dg�� }t |d d � j d d � |_ ||_ | j dd t j"