Skip to content

Commit

Permalink
renaming "data" to "computer", fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-dtt committed Jan 3, 2022
1 parent 33708fa commit 977607f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions adexpsnapshot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ def processComputers(self, entry):
distinguishedName = ADUtils.get_entry_property(entry, 'distinguishedName')
domain = ADUtils.ldap2domain(distinguishedName)

samname = ADUtils.get_entry_property(entry, 'sAMAccountName')
primarygroup = MembershipEnumerator.get_primary_membership(entry)

computer = {
Expand Down Expand Up @@ -272,10 +271,10 @@ def processComputers(self, entry):
continue
try:
sid = self.computersidcache.get(target)
data['AllowedToDelegate'].append(sid)
computer['AllowedToDelegate'].append(sid)
except KeyError:
if '.' in target:
data['AllowedToDelegate'].append(target.upper())
computer['AllowedToDelegate'].append(target.upper())
if len(delegatehosts) > 0:
props['allowedtodelegate'] = delegatehosts

Expand Down

0 comments on commit 977607f

Please sign in to comment.