Skip to content

Commit 70463e5

Browse files
committed
fix(ldap): support get-sid and admin flag when using --use-kcache
1 parent 68e36dc commit 70463e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def check_if_admin(self):
664664
resp = self.search(search_filter, attributes, sizeLimit=0, baseDN=self.baseDN)
665665
resp_parsed = parse_result_attributes(resp)
666666
answers = []
667-
if resp and (self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "") and self.username != "":
667+
if resp and (self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "" or self.use_kcache) and self.username != "":
668668
for item in resp_parsed:
669669
self.sid_domain = "-".join(item["objectSid"].split("-")[:-1])
670670

0 commit comments

Comments
 (0)