Skip to content

Commit 94d420e

Browse files
committed
More debug infos
1 parent 7e2a75e commit 94d420e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nxc/protocols/ldap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def sid_to_str(self, sid):
576576
def check_if_admin(self):
577577
# 1. get SID of the domaine
578578
search_filter = "(userAccountControl:1.2.840.113556.1.4.803:=8192)"
579-
attributes = ["objectSid"]
579+
attributes = ["objectSid", "sAMAccountName", "distinguishedName"]
580580
resp = self.search(search_filter, attributes, sizeLimit=0)
581581
resp_parsed = parse_result_attributes(resp)
582582
from pprint import pprint

0 commit comments

Comments
 (0)