Skip to content

Commit

Permalink
Merge pull request #125 from franc-pentest/Fix-shadowprincipals
Browse files Browse the repository at this point in the history
Fix shadow principals
  • Loading branch information
tiyeuse authored Jan 10, 2025
2 parents 7c218f6 + 511cdba commit 2ecb461
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.79
1.0.80
7 changes: 4 additions & 3 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,9 +1296,10 @@ def list_shadow_principals(self, kwargs):
self.display(entries, verbose)
else:
for entry in entries:
print(
f"User {entry['member'][0]} added to Group {format_sid(entry['msDS-ShadowPrincipalSid'])}"
)
for user in entry.get("member", []):
print(
f"User {entry['member'][0]} added to Group {format_sid(entry['msDS-ShadowPrincipalSid'])}"
)
except (LDAPAttributeError, LDAPObjectClassError) as e:
error(
f"{e}. The domain's functional level may be too old",
Expand Down

0 comments on commit 2ecb461

Please sign in to comment.