%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/ntacl.cpython-312.pyc |
� �I�d�I � �\ � d dl mZ d dlmZ d dlmZmZ d dlm Z m Z mZ d dlm Z d dlmZmZ d dlmZ d dlmZmZ d d lmZ d d lmZ d dlZd dlmZ d dlmZmZm Z m!Z! d � Z" G d� de� Z# G d� de� Z$ G d� de� Z% G d� de� Z& G d� de� Z' G d� de� Z( G d� de � Z)y)� )�DONT_USE_KERBEROSN)�security�idmap)�setntacl�getntacl� getdosinfo)�Ldb)� ndr_unpack� ndr_print)�SamDB)�param�passdb)� provision)�system_session_unix)�system_session)�Command�CommandError�SuperCommand�Optionc �� � d}| j � }|dk( rd}t j � }|j | j � |r5 t t � | �� }|j dd|j z � |r!t j j � }|S t j � } |S # t $ r}t d|� �d }~ww xY w# t d� �xY w) NF�ROLE_ACTIVE_DIRECTORY_DCT��session_info�lp�Unable to open samdb:�passdb backend� samba_dsdb:%sz2Unable to read domain SID from configuration files)�server_role�s3param�get_context�load� configfiler r � Exceptionr �set�urlr �dom_sid� domain_sidr �get_domain_sid)r �is_ad_dcr �s3conf�samdb�er'