Skip to content

Commit af6b69d

Browse files
authored
Extend LDAP admin check to ccache auth
Signed-off-by: Fox <22664861+Mercury0@users.noreply.github.com>
1 parent b3ce231 commit af6b69d

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
@@ -655,7 +655,7 @@ def check_if_admin(self):
655655
resp = self.search(search_filter, attributes, sizeLimit=0, baseDN=self.baseDN)
656656
resp_parsed = parse_result_attributes(resp)
657657
answers = []
658-
if resp and (self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "") and self.username != "":
658+
if resp and ((self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "") or self.ldap_connection) and self.username != "":
659659
for item in resp_parsed:
660660
self.sid_domain = "-".join(item["objectSid"].split("-")[:-1])
661661

0 commit comments

Comments
 (0)