diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 5ddbcbe48..7f63799be 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -136,7 +136,7 @@ class Enumeration: if Backend.getIdentifiedDbms() == DBMS.MYSQL: self.getCurrentUser() query = queries[Backend.getIdentifiedDbms()].is_dba.query % kb.data.currentUser.split("@")[0] - elif Backend.getIdentifiedDbms() == DBMS.MSSQL and user is not None: + elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) and user is not None: query = queries[Backend.getIdentifiedDbms()].is_dba.query2 % user else: query = queries[Backend.getIdentifiedDbms()].is_dba.query diff --git a/xml/queries.xml b/xml/queries.xml index 05a9c0f2d..f13aad968 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -487,7 +487,7 @@ - +