s.k.NTDSConnection(object) : class documentation

Part of samba.kcc_utils View In Hierarchy

Class defines a nTDSConnection found under a DSA
Method __init__ Undocumented
Method __str__ Debug dump string output of NTDSConnection object
Method load_connection Given a NTDSConnection object with an prior initialization for the object's DN, search for the DN and load attributes from the samdb.
Method load_connection_transport Given a NTDSConnection object which enumerates a transport DN, load the transport information for the connection object
Method commit_deleted Local helper routine for commit_connections() which handles committed connections that are to be deleted from the database database
Method commit_added Local helper routine for commit_connections() which handles committed connections that are to be added to the database
Method commit_modified Local helper routine for commit_connections() which handles committed connections that are to be modified to the database
Method set_modified Undocumented
Method set_added Undocumented
Method set_deleted Undocumented
Method is_schedule_minimum_once_per_week Returns True if our schedule includes at least one replication interval within the week. False otherwise
Method is_equivalent_schedule Returns True if our schedule is equivalent to the input comparison schedule.
Method convert_schedule_to_repltimes Convert NTDS Connection schedule to replTime schedule.
Method is_rodc_topology Returns True if NTDS Connection specifies RODC topology only
Method is_generated Returns True if NTDS Connection was generated by the KCC topology algorithm as opposed to set by the administrator
Method is_override_notify_default Returns True if NTDS Connection should override notify default
Method is_use_notify Returns True if NTDS Connection should use notify
Method is_twoway_sync Returns True if NTDS Connection should use twoway sync
Method is_intersite_compression_disabled Returns True if NTDS Connection intersite compression is disabled
Method is_user_owned_schedule Returns True if NTDS Connection has a user owned schedule
Method is_enabled Returns True if NTDS Connection is enabled
Method get_from_dnstr Return fromServer dn string attribute
def __init__(self, dnstr):
Undocumented
def __str__(self):
Debug dump string output of NTDSConnection object
def load_connection(self, samdb):
Given a NTDSConnection object with an prior initialization for the object's DN, search for the DN and load attributes from the samdb.
def load_connection_transport(self, tdnstr):
Given a NTDSConnection object which enumerates a transport DN, load the transport information for the connection object
Parameterstdnstrtransport DN to load
def commit_deleted(self, samdb, ro=False):
Local helper routine for commit_connections() which handles committed connections that are to be deleted from the database database
def commit_added(self, samdb, ro=False):
Local helper routine for commit_connections() which handles committed connections that are to be added to the database
def commit_modified(self, samdb, ro=False):
Local helper routine for commit_connections() which handles committed connections that are to be modified to the database
def set_modified(self, truefalse):
Undocumented
def set_added(self, truefalse):
Undocumented
def set_deleted(self, truefalse):
Undocumented
def is_schedule_minimum_once_per_week(self):
Returns True if our schedule includes at least one replication interval within the week. False otherwise
def is_equivalent_schedule(self, sched):
Returns True if our schedule is equivalent to the input comparison schedule.
Parametersshedschedule to compare to
def convert_schedule_to_repltimes(self):
Convert NTDS Connection schedule to replTime schedule.

NTDS Connection schedule slots are double the size of the replTime slots but the top portion of the NTDS Connection schedule slot (4 most significant bits in uchar) are unused. The 4 least significant bits have the same (15 minute interval) bit positions as replTimes. We thus pack two elements of the NTDS Connection schedule slots into one element of the replTimes slot If no schedule appears in NTDS Connection then a default of 0x11 is set in each replTimes slot as per behaviour noted in a Windows DC. That default would cause replication within the last 15 minutes of each hour.

def is_rodc_topology(self):
Returns True if NTDS Connection specifies RODC topology only
def is_generated(self):
Returns True if NTDS Connection was generated by the KCC topology algorithm as opposed to set by the administrator
def is_override_notify_default(self):
Returns True if NTDS Connection should override notify default
def is_use_notify(self):
Returns True if NTDS Connection should use notify
def is_twoway_sync(self):
Returns True if NTDS Connection should use twoway sync
def is_intersite_compression_disabled(self):
Returns True if NTDS Connection intersite compression is disabled
def is_user_owned_schedule(self):
Returns True if NTDS Connection has a user owned schedule
def is_enabled(self):
Returns True if NTDS Connection is enabled
def get_from_dnstr(self):
Return fromServer dn string attribute
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.