Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #546 from qtc-de/bug/mssql-check-if-admin
Browse files Browse the repository at this point in the history
Fix mssql check_if_admin function
  • Loading branch information
mpgn committed Mar 6, 2022
2 parents 85a1dba + 0e3c792 commit 2467a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cme/protocols/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def create_conn_obj(self):

return True

def check_if_admin(self, auth):
def check_if_admin(self):
try:
self.conn.sql_query("SELECT IS_SRVROLEMEMBER('sysadmin')")
self.conn.printRows()
Expand Down Expand Up @@ -167,7 +167,7 @@ def plaintext_login(self, domain, username, password):
self.password = password
self.username = username
self.domain = domain
self.check_if_admin(self.args.local_auth)
self.check_if_admin()
self.db.add_credential('plaintext', domain, username, password)

if self.admin_privs:
Expand Down

0 comments on commit 2467a57

Please sign in to comment.