%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/provision/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/provision/__pycache__/sambadns.cpython-312.pyc |
� �de�� � �D � d Z ddlZddlZddlZddlZddlZddlmZ ddlZddl Z ddl mZ ddlm Z ddlmZmZ ddl mZ ddlmZmZmZ dd lmZmZmZmZmZmZ dd lmZmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- ddl.m/Z/ dd l0m1Z1 d� Z2d� Z3 G d� dejh � Z5 G d� dejh � Z6 G d� dejh � Z7 G d� dejh � Z8 G d� dejh � Z9 G d� dejh � Z: G d� dejh � Z; G d� dejx � Z= G d � d!ejx � Z> G d"� d#ejx � Z? G d$� d%ejx � Z@ G d&� d'ejx � ZA G d(� d)ejx � ZB G d*� d+ejx � ZCd,� ZDd-� ZEdKd.�ZFd/� ZGd0� ZHd1� ZId2� ZJd3� ZKd4� ZLd5� ZMd6� ZNd7� ZOd8� ZPd9� ZQd:� ZRd;� ZSd<� ZTd=� ZUd>� ZVd?� ZWd@� ZXdA� ZYdB� ZZdC� Z[dD� Z\dE� Z]dF� Z^dGe*dGfdH�Z_dddde*dfdI�Z` dLdJ�Zay)MzDNS-related provisioning� N)� b64encode)�tdb_copy)�mdb_copy)�ndr_pack� ndr_unpack)� setup_file)�dnsp�misc�security)�DS_DOMAIN_FUNCTION_2000�DS_DOMAIN_FUNCTION_2003�DS_DOMAIN_FUNCTION_2008_R2�DS_DOMAIN_FUNCTION_2012_R2�DS_DOMAIN_FUNCTION_2016�DS_GUID_USERS_CONTAINER)�get_deletedobjects_descriptor�get_domain_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)� setup_path�setup_add_ldif�setup_modify_ldif� setup_ldb� FILL_FULL�FILL_SUBDOMAIN�FILL_NT4SYNC�FILL_DRS)�get_default_backend_store)� get_stringc � � | j |t j dg�� }t t t j |d d d � � }|S )N� objectGUID��base�scope�attrsr )�search�ldb� SCOPE_BASE�strr r �GUID)�samdb�domaindn�res� domainguids �:/usr/lib/python3/dist-packages/samba/provision/sambadns.py�get_domainguidr3 C sE � � �,�,�H�C�N�N�<�.�,� Q�C��Z�� � �3�q�6�,�+?��+B�C�D�J��� c �� � d| j t j | |� t � z }| j |t j dg�� }t t j |d d d � }|S )NzCN=DnsAdmins,%s� objectSidr% r ) �get_wellknown_dnr* �Dnr r) r+ r r �dom_sid)r. r/ �base_dnr0 � dnsadmins_sids r2 �get_dnsadmins_sidr<