s.k.Partition(NamingContext) : class documentation

Part of samba.kcc_utils View In Hierarchy

A naming context discovered thru Partitions DN of the config schema.

This is a more specific form of NamingContext class (inheriting from that class) and it identifies unique attributes enumerated in the Partitions such as which nTDSDSAs are cross referenced for replicas

Method __init__ Instantiate a NamingContext
Method load_partition No summary
Method should_be_present No summary
Method __str__ Debug dump string output of class

Inherited from NamingContext:

Method is_schema Return True if NC is schema
Method is_domain Return True if NC is domain
Method is_application Return True if NC is application
Method is_config Return True if NC is config
Method identify_by_basedn Given an NC object, identify what type is is thru the samdb basedn strings and NC sid value
Method identify_by_dsa_attr No summary
def __init__(self, partstr):
Instantiate a NamingContext
Parametersnc_dnstrNC dn string
nc_guidNC guid
nc_sidNC sid
def load_partition(self, samdb):
Given a Partition class object that has been initialized with its partition dn string, load the partition from the sam database, identify the type of the partition (schema, domain, etc) and record the list of nTDSDSAs that appear in the cross reference attributes msDS-NC-Replica-Locations and msDS-NC-RO-Replica-Locations.
Parameterssamdbsam database to load partition from
def should_be_present(self, target_dsa):
Tests whether this partition should have an NC replica on the target dsa. This method returns a tuple of needed=True/False, ro=True/False, partial=True/False :param target_dsa: should NC be present on target dsa
def __str__(self):
Debug dump string output of class
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.