Part of samba.kcc_utils View In Hierarchy
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 |
Class is subsequently fully populated by calling the load_dsa() method
Parameters | dsa_dnstr | DN of the nTDSDSA |
Parameters | version | Windows version to test against (e.g. DS_BEHAVIOR_WIN2008) |
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.
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.
Parameters | samdb | database to query for DSA replica list |
Parameters | samdb | database to query for DSA connection list |