s.d.dbcheck(object) : class documentation

Part of samba.dbchecker View In Hierarchy

check a SAM database for errors
Method __init__ Undocumented
Method check_database perform a database check, returning the number of errors found
Method report print a message unless quiet is set
Method confirm confirm a change
Method confirm_all confirm a change with support for "all"
Method do_modify perform a modify with optional verbose output
Method err_empty_attribute fix empty attributes
Method err_normalise_mismatch fix attribute normalisation errors
Method is_deleted_objects_dn see if a dsdb_Dn is the special Deleted Objects DN
Method err_deleted_dn Undocumented
Method err_missing_dn_GUID Undocumented
Method err_incorrect_dn_GUID Undocumented
Method err_dn_target_mismatch Undocumented
Method err_unknown_attribute handle an unknown attribute error
Method err_missing_backlink handle a missing backlink value
Method err_orphaned_backlink handle a orphaned backlink value
Method check_dn check a DN attribute for correctness
Method get_originating_time Read metadata properties and return the originating time for a given attributeId.
Method process_metadata Read metadata properties and list attributes in it
Method fix_metadata re-write replPropertyMetaData elements for a single attribute for a object. This is used to fix missing replPropertyMetaData elements
Method check_object check one object
Method check_rootdse check the @ROOTDSE special object
Method reindex_database re-index the whole database
def __init__(self, samdb, samdb_schema=None, verbose=False, fix=False, yes=False, quiet=False, in_transaction=False):
Undocumented
def check_database(self, DN=None, scope=ldb.SCOPE_SUBTREE, controls=, attrs='*'):
perform a database check, returning the number of errors found
def report(self, msg):
print a message unless quiet is set
def confirm(self, msg, allow_all=False, forced=False):
confirm a change
def confirm_all(self, msg, all_attr):
confirm a change with support for "all"
def do_modify(self, m, controls, msg, validate=True):
perform a modify with optional verbose output
def err_empty_attribute(self, dn, attrname):
fix empty attributes
def err_normalise_mismatch(self, dn, attrname, values):
fix attribute normalisation errors
def is_deleted_objects_dn(self, dsdb_dn):
see if a dsdb_Dn is the special Deleted Objects DN
def err_deleted_dn(self, dn, attrname, val, dsdb_dn, correct_dn):
Undocumented
def err_missing_dn_GUID(self, dn, attrname, val, dsdb_dn):
Undocumented
def err_incorrect_dn_GUID(self, dn, attrname, val, dsdb_dn, errstr):
Undocumented
def err_dn_target_mismatch(self, dn, attrname, val, dsdb_dn, correct_dn, errstr):
Undocumented
def err_unknown_attribute(self, obj, attrname):
handle an unknown attribute error
def err_missing_backlink(self, obj, attrname, val, backlink_name, target_dn):
handle a missing backlink value
def err_orphaned_backlink(self, obj, attrname, val, link_name, target_dn):
handle a orphaned backlink value
def check_dn(self, obj, attrname, syntax_oid):
check a DN attribute for correctness
def get_originating_time(self, val, attid):
Read metadata properties and return the originating time for a given attributeId.
Returnsthe originating time or 0 if not found
def process_metadata(self, val):
Read metadata properties and list attributes in it
def fix_metadata(self, dn, attr):
re-write replPropertyMetaData elements for a single attribute for a object. This is used to fix missing replPropertyMetaData elements
def check_object(self, dn, attrs='*'):
check one object
def check_rootdse(self):
check the @ROOTDSE special object
def reindex_database(self):
re-index the whole database
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.