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 is_enabled Returns True if partition is enabled
Method is_foreign Returns True if this is not an Active Directory NC in our forest but is instead something else (e.g. a foreign NC)
Method should_be_present 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
Method __str__ Debug dump string output of class

Inherited from NamingContext:

Method load_nc Undocumented
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
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 is_enabled(self):
Returns True if partition is enabled
def is_foreign(self):
Returns True if this is not an Active Directory NC in our forest but is instead something else (e.g. a foreign NC)
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
Parameterstarget_dsashould NC be present on target dsa
def __str__(self):
Debug dump string output of class
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.