Fix regression for mssql with local_auth thx @juliourena

main
mpgn 2022-10-24 15:20:14 -04:00
parent c1ff29a9ec
commit a3b3ab9e92
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class mssql(connection):
self.create_conn_obj() self.create_conn_obj()
try: try:
res = self.conn.login(None, username, password, domain, None, True) res = self.conn.login(None, username, password, domain, None, not self.args.local_auth)
if res is not True: if res is not True:
self.conn.printReplies() self.conn.printReplies()
return False return False
@ -213,7 +213,7 @@ class mssql(connection):
self.create_conn_obj() self.create_conn_obj()
try: try:
res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, True) res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, not self.args.local_auth)
if res is not True: if res is not True:
self.conn.printReplies() self.conn.printReplies()
return False return False