File: //usr/lib/python3/dist-packages/samba/netcmd/__pycache__/schema.cpython-310.pyc
o
�/a?/ � @ s� d dl Z d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZmZm
Z
mZ G dd� de�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZdS )� N)� bitFields)�system_session)�SamDB)�Command�CommandError�SuperCommand�Optionc @ s\ e Zd ZdZdZejejejd�Z e
dded�e
ddd ed
dd�gZd
gZ
ddd�ZdS )�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 confidental 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 C s |d u rt d��d }|d ur=d}|�d�}dd� |D �}|D ]} | td �� vr.t d| ��dtd | }
|d |
>