s.k.DirectoryServiceAgent(object) : class documentation

Part of samba.kcc_utils View In Hierarchy

No class docstring
Method __init__ Initialize DSA class.
Method __str__ Debug dump string output of class
Method get_current_replica Undocumented
Method is_ro Returns True if dsa a read only domain controller
Method is_gc Returns True if dsa hosts a global catalog
Method is_minimum_behavior Is dsa at minimum windows level greater than or equal to (version)
Method should_translate_ntdsconn Whether this allows NTDSConnection translation in its options.
Method get_rep_tables Return DSA current and needed replica tables
Method get_parent_dnstr Get the parent DN string of this object.
Method load_dsa Load a DSA from the samdb.
Method load_current_replica_table Method to load the NC replica's listed for DSA object.
Method add_needed_replica Method to add a NC replica that "should be present" to the needed_rep_table if not already in the table
Method load_connection_table Method to load the nTDSConnections listed for DSA object.
Method commit_connection_table No summary
Method add_connection Undocumented
Method get_connection_by_from_dnstr No summary
Method dumpstr_current_replica_table Debug dump string output of current replica table
Method dumpstr_needed_replica_table Debug dump string output of needed replica table
Method dumpstr_connect_table Debug dump string output of connect table
def __init__(self, dsa_dnstr):
Initialize DSA class.

Class is subsequently fully populated by calling the load_dsa() method

Parametersdsa_dnstrDN of the nTDSDSA
def __str__(self):
Debug dump string output of class
def get_current_replica(self, nc_dnstr):
Undocumented
def is_ro(self):
Returns True if dsa a read only domain controller
def is_gc(self):
Returns True if dsa hosts a global catalog
def is_minimum_behavior(self, version):
Is dsa at minimum windows level greater than or equal to (version)
ParametersversionWindows version to test against (e.g. DS_BEHAVIOR_WIN2008)
def should_translate_ntdsconn(self):
Whether this allows NTDSConnection translation in its options.
def get_rep_tables(self):
Return DSA current and needed replica tables
def get_parent_dnstr(self):
Get the parent DN string of this object.
def load_dsa(self, samdb):
Load a DSA from the samdb.

Prior initialization has given us the DN of the DSA that we are to load. This method initializes all other attributes, including loading the NC replica table for this DSA.

def load_current_replica_table(self, samdb):
Method to load the NC replica's listed for DSA object.

This method queries the samdb for (hasMasterNCs, msDS-hasMasterNCs, hasPartialReplicaNCs, msDS-HasDomainNCs, msDS-hasFullReplicaNCs, and msDS-HasInstantiatedNCs) to determine complete list of NC replicas that are enumerated for the DSA. Once a NC replica is loaded it is identified (schema, config, etc) and the other replica attributes (partial, ro, etc) are determined.

Parameterssamdbdatabase to query for DSA replica list
def add_needed_replica(self, rep):
Method to add a NC replica that "should be present" to the needed_rep_table if not already in the table
def load_connection_table(self, samdb):
Method to load the nTDSConnections listed for DSA object.
Parameterssamdbdatabase to query for DSA connection list
def commit_connection_table(self, samdb):
Method to commit any uncommitted nTDSConnections that are in our table. These would be identified connections that are marked to be added or deleted :param samdb: database to commit DSA connection list to
def add_connection(self, dnstr, connect):
Undocumented
def get_connection_by_from_dnstr(self, from_dnstr):
Scan DSA nTDSConnection table and return connection with a "fromServer" dn string equivalent to method input parameter. :param from_dnstr: search for this from server entry
def dumpstr_current_replica_table(self):
Debug dump string output of current replica table
def dumpstr_needed_replica_table(self):
Debug dump string output of needed replica table
def dumpstr_connect_table(self):
Debug dump string output of connect table
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.