Skip to content

Commit

Permalink
Added debug output on lack of default privileged RID
Browse files Browse the repository at this point in the history
  • Loading branch information
Joytide committed Jan 26, 2025
1 parent 8309947 commit 34f6ce2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nxc/protocols/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def check_if_admin(self):
if str(attribute["type"]) == "distinguishedName":
answers.append(str("(memberOf:1.2.840.113556.1.4.1941:=" + attribute["vals"][0] + ")"))
if len(answers) == 0:
self.logger.debug(f"No groups with default privileged RID were found. Assuming user is not a Domain Administrator.")
return

# 3. get member of these groups
Expand Down

0 comments on commit 34f6ce2

Please sign in to comment.