Merge pull request #658 from Porchetta-Industries/mssql-uaht
Fix regression for mssql with local_auth thx @juliourenamain
commit
87108d4878
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue