We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce260f commit 8309947Copy full SHA for 8309947
1 file changed
nxc/protocols/ldap.py
@@ -590,6 +590,8 @@ def check_if_admin(self):
590
for attribute in item["attributes"]:
591
if str(attribute["type"]) == "distinguishedName":
592
answers.append(str("(memberOf:1.2.840.113556.1.4.1941:=" + attribute["vals"][0] + ")"))
593
+ if len(answers) == 0:
594
+ return
595
596
# 3. get member of these groups
597
search_filter = "(&(objectCategory=user)(sAMAccountName=" + self.username + ")(|" + "".join(answers) + "))"
0 commit comments