예제 #1
0
파일: map_links.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     assert self.linkid.find({
         "name": {
             "$exists": True
         }
     }).count() > 10, "less than 10 names in linkid table"
예제 #2
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.sd_table, "sd_id")
     self.assert_field_exists(self.sd_table, "sd_value")
     self.assert_field_type(self.datatable, "rightsGuid", str, unicode)
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
     self.assert_field_type(self.datatable, "nTSecurityDescriptor", int)
     self.assert_field_type(self.datatable, "objectCategory", int)
예제 #3
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "objectCategory")
     self.assert_field_type(self.datatable, "objectCategory", int)
     self.assert_field_exists(self.datatable, "whenCreated")
     self.assert_field_type(self.datatable, "name", str, unicode)
     self.assert_field_type(self.datatable, "userAccountControl", dict)
     self.assert_field_type(self.datatable, "cn", str, unicode)
예제 #4
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
     self.assert_field_type(self.datatable, "cn", str, unicode)
     self.assert_field_type(self.datatable, "DNT_col", int)
     self.assert_field_type(self.datatable, "primaryGroupID", int)
     self.assert_field_type(self.link_table, "link_DNT", int)
     self.assert_field_type(self.link_table, "backlink_DNT", int)
예제 #5
0
파일: SD_users.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "objectSid")
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
     self.assert_field_exists(self.datatable, "name")
     self.assert_field_type(self.datatable, "name", str, unicode)
     self.assert_field_exists(self.datatable, "whenCreated")
     self.assert_field_type(self.datatable, "whenCreated",
                            datetime.datetime)
     self.assert_field_exists(self.sd_table, "sd_value.DACL.ACEList.SID")
     self.assert_field_exists(self.sd_table, "sd_value.SACL.ACEList.SID")
예제 #6
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_type(self.datatable, "adminCount", int)
     self.assert_field_exists(self.datatable, "objectSid")
     self.assert_field_exists(self.datatable, "objectCategory")
     self.assert_field_type(self.datatable, "objectCategory", int)
     self.assert_field_exists(self.datatable, "cn")
     self.assert_field_type(self.datatable, "InheritedObjectType", str,
                            unicode)
     self.assert_field_type(self.datatable, "schemaIDGUID", str, unicode)
     self.assert_field_type(self.datatable, "rightsGuid", str, unicode)
예제 #7
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "objectCategory")
     self.assert_field_exists(self.datatable, "cn")
     self.assert_field_type(self.datatable, "objectCategory", int)
     self.assert_field_type(self.datatable, "cn", str, unicode)
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
     self.assert_field_type(self.datatable, "whenChanged",
                            datetime.datetime)
     self.assert_field_type(self.datatable, "whenCreated",
                            datetime.datetime)
예제 #8
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
     self.assert_field_type(self.datatable, "DNT_col", int)
     self.assert_field_type(self.datatable, "PDNT_col", int)
     self.assert_field_type(self.datatable, "objectCategory", int)
     self.assert_field_type(self.datatable, "cn", str, unicode)
     self.assert_field_type(self.datatable, "name", str, unicode)
     self.assert_field_type(self.datatable, "objectGUID", str, unicode)
     self.assert_field_type(self.sd_table, "link_DNT", int)
     self.assert_field_type(self.sd_table, "link_deltime", datetime.datetime)
     self.assert_field_type(self.sd_table, "backlink_DNT", int)
예제 #9
0
파일: schema.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "objectCategory")
     self.assert_field_exists(self.datatable, "DNT_col")
     self.assert_field_exists(self.datatable, "cn")
     self.assert_field_type(self.datatable, "objectCategory", int)
     self.assert_field_type(self.datatable, "time_col", datetime.datetime)
     self.assert_field_type(self.datatable, "whenChanged", datetime.datetime)
     self.assert_field_type(self.datatable, "whenCreated", datetime.datetime)
     self.assert_field_type(self.datatable, "DNT_col", int)
     self.assert_field_type(self.datatable, "cn", str, unicode)
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
     self.assert_field_type(self.datatable, "nTSecurityDescriptor", int)
예제 #10
0
파일: who_is.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "objectSid")
     self.assert_field_type(self.datatable, "objectSid", str, unicode)
예제 #11
0
파일: domains.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_type(self.datatable, "dn", str, unicode)
예제 #12
0
파일: DN_grep.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "PDNT_col")
     self.assert_field_type(self.datatable, "cn", str, unicode)
     self.assert_field_type(self.datatable, "name", str, unicode)
     self.assert_field_type(self.datatable, "PDNT_col", int)
예제 #13
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_exists(self.datatable, "name")
     self.assert_field_exists(self.datatable, "Ancestors_col")
     self.assert_field_type(self.datatable, "name", str, unicode)
예제 #14
0
파일: passwords.py 프로젝트: stjordanis/bta
 def assert_consistency(self):
     Miner.assert_consistency(self)
     self.assert_field_type(self.datatable, "badPwdCount", int)
     self.assert_field_type(self.datatable, "sAMAccountName", str, unicode)
     self.assert_field_type(self.datatable, "name", str, unicode)
     self.assert_field_type(self.datatable, "description", str, unicode)
예제 #15
0
 def assert_consistency(self):
     Miner.assert_consistency(self)
     Miner.assert_field_exists(self.datatable, "objectCategory")
     Miner.assert_field_type(self.datatable, "objectCategory", int)
예제 #16
0
 def __init__(self, backend):
     Miner.__init__(self, backend)
     self.dblog = backend.open_table("log")