We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e2a75e commit 94d420eCopy full SHA for 94d420e
nxc/protocols/ldap.py
@@ -576,7 +576,7 @@ def sid_to_str(self, sid):
576
def check_if_admin(self):
577
# 1. get SID of the domaine
578
search_filter = "(userAccountControl:1.2.840.113556.1.4.803:=8192)"
579
- attributes = ["objectSid"]
+ attributes = ["objectSid", "sAMAccountName", "distinguishedName"]
580
resp = self.search(search_filter, attributes, sizeLimit=0)
581
resp_parsed = parse_result_attributes(resp)
582
from pprint import pprint
0 commit comments