fix/update for Access

This commit is contained in:
Miroslav Stampar 2010-11-04 21:47:21 +00:00
parent 29b7c5366c
commit d7dbf814a0
3 changed files with 14 additions and 1 deletions

View File

@ -28,6 +28,10 @@ class Enumeration(GenericEnumeration):
return None
def getCurrentDb(self):
warnMsg = "on Microsoft Access it is not possible to get name of the current database"
logger.warn(warnMsg)
def getPasswordHashes(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the user password hashes"
logger.warn(warnMsg)
@ -39,3 +43,9 @@ class Enumeration(GenericEnumeration):
logger.warn(warnMsg)
return []
def dumpTable(self):
warnMsg = "on Microsoft Access it is not yet implemented dumping of tables"
logger.warn(warnMsg)
return None

View File

@ -23,7 +23,7 @@ class Enumeration(GenericEnumeration):
logger.warn(warnMsg)
def getCurrentDb(self):
warnMsg = "on SQLite it is not possible to enumerate the current database"
warnMsg = "on SQLite it is not possible to get name of the current database"
logger.warn(warnMsg)
def isDba(self):

View File

@ -1259,6 +1259,9 @@ class Enumeration:
conf.col = None
kb.data.cachedDbs = []
kb.data.cachedTables = self.getTables()
if isinstance(kb.data.cachedTables, list):
kb.data.cachedTables = { None : kb.data.cachedTables }
for db, tables in kb.data.cachedTables.items():
conf.db = db