s.k.NCReplica(NamingContext) : class documentation

Part of samba.kcc_utils View In Hierarchy

Naming context replica that is relative to a specific DSA.

This is a more specific form of NamingContext class (inheriting from that class) and it identifies unique attributes of the DSA's replica for a NC.

Method __init__ Instantiate a Naming Context Replica
Method __str__ Debug dump string output of class
Method set_instantiated_flags Set or clear NC replica instantiated flags
Method identify_by_dsa_attr Given an NC which has been discovered thru the nTDSDSA database object, determine what type of NC replica it is (i.e. partial, read only, default)
Method is_default Whether this is a default domain for the dsa that this NC appears on
Method is_ro Return True if NC replica is read only
Method is_partial Return True if NC replica is partial
Method is_present No summary
Method load_repsFrom No summary
Method commit_repsFrom Commit repsFrom to the database
Method load_fsmo_roles Undocumented
Method is_fsmo_role_owner Undocumented

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
def __init__(self, dsa_dnstr, dsa_guid, nc_dnstr, nc_guid=None, nc_sid=None):
Instantiate a Naming Context Replica
Parametersdsa_guidGUID of DSA where replica appears
nc_dnstrNC dn string
nc_guidNC guid
nc_sidNC sid
def __str__(self):
Debug dump string output of class
def set_instantiated_flags(self, flags=None):
Set or clear NC replica instantiated flags
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 replica it is (i.e. partial, read only, default)
Parametersattrattr of nTDSDSA object where NC DN appears
def is_default(self):
Whether this is a default domain for the dsa that this NC appears on
def is_ro(self):
Return True if NC replica is read only
def is_partial(self):
Return True if NC replica is partial
def is_present(self):
Given an NC replica which has been discovered thru the nTDSDSA database object and populated with replica flags from the msDS-HasInstantiatedNCs; return whether the NC replica is present (true) or if the IT_NC_GOING flag is set then the NC replica is not present (false)
def load_repsFrom(self, samdb):
Given an NC replica which has been discovered thru the nTDSDSA database object, load the repsFrom attribute for the local replica. held by my dsa. The repsFrom attribute is not replicated so this attribute is relative only to the local DSA that the samdb exists on
def commit_repsFrom(self, samdb):
Commit repsFrom to the database
def load_fsmo_roles(self, samdb):
Undocumented
def is_fsmo_role_owner(self, dsa_dnstr):
Undocumented
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.