Fix regression for mssql with local_auth thx @juliourena
parent
c1ff29a9ec
commit
a3b3ab9e92
|
@ -166,7 +166,7 @@ class mssql(connection):
|
|||
self.create_conn_obj()
|
||||
|
||||
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:
|
||||
self.conn.printReplies()
|
||||
return False
|
||||
|
@ -213,7 +213,7 @@ class mssql(connection):
|
|||
self.create_conn_obj()
|
||||
|
||||
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:
|
||||
self.conn.printReplies()
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue