Fix ldap not reporting DA when using hash login

main
Alexander Neff 2024-03-24 02:46:58 +01:00
parent 6a24d76db9
commit 041645aed9
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ class ldap(connection):
attributes = ["objectSid"]
resp = self.search(search_filter, attributes, sizeLimit=0)
answers = []
if resp and self.password != "" and self.username != "":
if resp and (self.password != "" or self.lmhash != "" or self.nthash != "") and self.username != "":
for attribute in resp[0][1]:
if str(attribute["type"]) == "objectSid":
sid = self.sid_to_str(attribute["vals"][0])