s.k.NamingContext(object) : class documentation

Part of samba.kcc_utils View In Hierarchy

Known subclasses: samba.kcc_utils.NCReplica, samba.kcc_utils.Partition

Base class for a naming context.

Holds the DN, GUID, SID (if available) and type of the DN. Subclasses may inherit from this and specialize

Method __init__ Instantiate a NamingContext
Method __str__ Debug dump string output of class
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, nc_dnstr, nc_guid=None, nc_sid=None):
Instantiate a NamingContext
Parametersnc_dnstrNC dn string
nc_guidNC guid
nc_sidNC sid
def __str__(self):
Debug dump string output of class
def is_schema(self):
Return True if NC is schema
def is_domain(self):
Return True if NC is domain
def is_application(self):
Return True if NC is application
def is_config(self):
Return True if NC is config
def identify_by_basedn(self, samdb):
Given an NC object, identify what type is is thru the samdb basedn strings and NC sid value
def identify_by_dsa_attr(self, samdb, attr):
Given an NC which has been discovered thru the nTDSDSA database object, determine what type of NC it is (i.e. schema, config, domain, application) via the use of the schema attribute under which the NC was found.
Parametersattrattr of nTDSDSA object where NC DN appears
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.