%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/schema.cpython-312.pyc |
� �I�d@/ � �� � d dl Z d dlmZ d dlmZ d dlmZ d dlm Z d dl mZmZm Z mZ G d� de� Z G d� d e� Z G d � de� Z G d� d e� Z G d� de � Z G d� de � Z G d� de � Zy)� N)� bitFields)�system_session)�SamDB)�Command�CommandError�SuperCommand�Optionc � � e Zd ZdZdZej ej ej d�Z e dde�� e ddd ed d�� gZd gZ dd�Zy)�cmd_schema_attribute_modifya� Modify attribute settings in the schema partition. This commands allows minor modifications to attributes in the schema. Active Directory does not allow many changes to schema, but important modifications are related to indexing. This command overwrites the value of searchflags, so be sure to view the current content before making changes. Example1: samba-tool schema attribute modify uid \ --searchflags="fATTINDEX,fPRESERVEONDELETE" This alters the uid attribute to be indexed and to be preserved when converted to a tombstone. Important search flag values are: fATTINDEX: create an equality index for this attribute. fPDNTATTINDEX: create a container index for this attribute (ie OU). fANR: specify that this attribute is a member of the ambiguous name resolution set. fPRESERVEONDELETE: indicate that the value of this attribute should be preserved when the object is converted to a tombstone (deleted). fCOPY: hint to clients that this attribute should be copied. fTUPLEINDEX: create a tuple index for this attribute. This is used in substring queries. fSUBTREEATTINDEX: create a browsing index for this attribute. VLV searches require this. fCONFIDENTIAL: indicate that the attribute is confidential and requires special access checks. fNEVERVALUEAUDIT: indicate that changes to this value should NOT be audited. fRODCFILTEREDATTRIBUTE: indicate that this value should not be replicated to RODCs. fEXTENDEDLINKTRACKING: indicate to the DC to perform extra link tracking. fBASEONLY: indicate that this attribute should only be displayed when the search scope of the query is SCOPE_BASE or a single object result. fPARTITIONSECRET: indicate that this attribute is a partition secret and requires special access checks. The authoritative source of this information is the MS-ADTS. �%prog attribute [options]�� sambaopts�versionopts�credoptsz --searchflagszSearch Flags for the attribute)�help�type�-H�--URL�%LDB URL for database or target server�URL�H�r r �metavar�dest� attributeNc � � |�t d� �d }|��d}|j d� }|D � cg c] } | j � j � ��" }} |D ]@ } | t d j � vrt d| z � �dt d | z }|d|z z }�B |j � }|j |� } t |t � | |�� }|j � }d |�d|��}t j � }t j ||� |_ |�1t j t! |� t j"