Файловый менеджер - Редактировать - /usr/lib64/python3.6/site-packages/samba/gp/__pycache__/gpclass.cpython-36.opt-1.pyc
Ðазад
3 � �i\� � @ sl d dl Z d dlZd dlZd dlZd dlZd dlZe jjd d� d dlm Z m Z d dlmZ d dl mZ d dlZd dlmZ d dlmZmZ d dljjZd dlZd dlmZ d d lmZ d d lmZ d dl j!Z!d dl"m#Z# d dl$m%Z% d d l&m'Z' d dlm(Z( d dlm)Z) d dl*m+Z+m,Z, d dl-m.Z. d dl/m0Z0 d dl1m2Z2 d dl3Z3d dlm4Z4 d dl5m6Z6 d dl7m8Z8 d dl9Z9d dl:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@ d dl7mAZAmBZBmCZC d dlmDZD d dlEZd dlmFZF yd dlGmHZH eHdd�ZIW n$ eJk �r G dd� d�ZIY nX G dd � d �ZKG d!d"� d"�ZLG d#d$� d$eM�ZNG d%d&� d&eN�ZOG d'd(� d(eN�ZPG d)d*� d*eN�ZQG d+d,� d,eM�ZRG d-d.� d.eR�ZSd/d0� ZTd1d2� ZUd3d4� ZVG d5d6� d6�ZWd7d8� ZXd9d:� ZYd;d<� ZZd=d>� Z[d?d@� Z\dAdB� Z]dCdD� Z^dEdF� Z_dGdH� Z`dIdJ� ZadKdL� ZbdhdNdO�ZcdPdQ� ZddidSdT�ZedUdV� ZfdWdX� ZgdYdZ� Zhd[d\� Zidjd^d_�Zjdkd`da�Zkdldbdc�Zlddde� Zmdfdg� ZndS )m� Nz bin/python)� NTSTATUSError�WERRORError)�ConfigParser)�StringIO)� get_bytes)�ABCMeta�abstractmethod)�Net)�nbt)�libsmb_samba_internal)�LoadParm)�UUID)�NamedTemporaryFile)�preg)�misc)�ndr_pack� ndr_unpack)�SMB_SIGNING_REQUIRED)�log)�blake2b)� get_string)�SamDB)�system_session)�UF_WORKSTATION_TRUST_ACCOUNT�UF_SERVER_TRUST_ACCOUNT�GPLINK_OPT_ENFORCE�GPLINK_OPT_DISABLE�GPO_INHERIT�GPO_BLOCK_INHERITANCE)� AUTH_SESSION_INFO_DEFAULT_GROUPS�AUTH_SESSION_INFO_AUTHENTICATED�#AUTH_SESSION_INFO_SIMPLE_PRIVILEGES)�security)�netlogon)�Enum�GPOSTATEzAPPLY ENFORCE UNAPPLYc @ s e Zd ZdZdZdZdS )r% � � � N)�__name__� __module__�__qualname__�APPLY�ENFORCE�UNAPPLY� r/ r/ �/usr/lib64/python3.6/gpclass.pyr% = s c @ sj e Zd ZdZddd�Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� ZdS )�gp_loga[ Log settings overwritten by gpo apply The gp_log is an xml file that stores a history of gpo changes (and the original setting value). The log is organized like so: <gp> <user name="KDC-1$"> <applylog> <guid count="0" value="{31B2F340-016D-11D2-945F-00C04FB984F9}" /> </applylog> <guid value="{31B2F340-016D-11D2-945F-00C04FB984F9}"> <gp_ext name="System Access"> <attribute name="minPwdAge">-864000000000</attribute> <attribute name="maxPwdAge">-36288000000000</attribute> <attribute name="minPwdLength">7</attribute> <attribute name="pwdProperties">1</attribute> </gp_ext> <gp_ext name="Kerberos Policy"> <attribute name="ticket_lifetime">1d</attribute> <attribute name="renew_lifetime" /> <attribute name="clockskew">300</attribute> </gp_ext> </guid> </user> </gp> Each guid value contains a list of extensions, which contain a list of attributes. The guid value represents a GPO. The attributes are the values of those settings prior to the application of the GPO. The list of guids is enclosed within a user name, which represents the user the settings were applied to. This user may be the samaccountname of the local computer, which implies that these are machine policies. The applylog keeps track of the order in which the GPOs were applied, so that they can be rolled back in reverse, returning the machine to the state prior to policy application. Nc C sl t j| _|| _|| _|r&tj|�| _ntjd�| _|| _ | jj d| �}|dkrhtj| jd�}||jd<