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

Commit 87108d4

Browse files
author
mpgn
authored
Merge pull request #658 from Porchetta-Industries/mssql-uaht
Fix regression for mssql with local_auth thx @juliourena
2 parents e0a9633 + a3b3ab9 commit 87108d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cme/protocols/mssql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def plaintext_login(self, domain, username, password):
166166
self.create_conn_obj()
167167

168168
try:
169-
res = self.conn.login(None, username, password, domain, None, True)
169+
res = self.conn.login(None, username, password, domain, None, not self.args.local_auth)
170170
if res is not True:
171171
self.conn.printReplies()
172172
return False
@@ -213,7 +213,7 @@ def hash_login(self, domain, username, ntlm_hash):
213213
self.create_conn_obj()
214214

215215
try:
216-
res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, True)
216+
res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, not self.args.local_auth)
217217
if res is not True:
218218
self.conn.printReplies()
219219
return False

0 commit comments

Comments
 (0)