Skip to content

Commit

Permalink
added domain computers group to user's SIDs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ly4k committed Jun 18, 2023
1 parent b7fb6b2 commit eb80b14
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions certipy/lib/ldap.py
Expand Up @@ -354,13 +354,11 @@ def get_user_sids(self, username: str):
if primary_group_id is not None:
sids.add("%s-%d" % (self.domain_sid, primary_group_id))

# Add Domain Computers group if Machine Account Quota > 0
if self.machine_account_quota > 0:
logging.debug(
"Adding Domain Computers to list of current user's SIDs (Machine Account Quota: %d > 0)"
% self.machine_account_quota
)
sids.add("%s-515" % self.domain_sid)
# Add Domain Computers group
logging.debug(
"Adding Domain Computers to list of current user's SIDs"
)
sids.add("%s-515" % self.domain_sid)

dns = [user.get("distinguishedName")]
for sid in sids:
Expand Down

0 comments on commit eb80b14

Please sign in to comment.