Skip to content

Commit

Permalink
fixed python 3 issues
Browse files Browse the repository at this point in the history
tabs to spaces
  • Loading branch information
G0ldenGunSec authored Jan 9, 2020
1 parent da3b1f9 commit 416f189
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/GetUserSPNs.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,18 +311,18 @@ def run(self):
pwdLastSet = ''
userAccountControl = 0
lastLogon = 'N/A'
delegation = ''
delegation = ''
try:
for attribute in item['attributes']:
if str(attribute['type']) == 'sAMAccountName':
sAMAccountName = str(attribute['vals'][0])
mustCommit = True
elif str(attribute['type']) == 'userAccountControl':
userAccountControl = str(attribute['vals'][0])
if int(userAccountControl) & UF_TRUSTED_FOR_DELEGATION:
delegation = 'unconstrained'
elif int(userAccountControl) & UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION:
delegation = 'constrained'
if int(userAccountControl) & UF_TRUSTED_FOR_DELEGATION:
delegation = 'unconstrained'
elif int(userAccountControl) & UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION:
delegation = 'constrained'
elif str(attribute['type']) == 'memberOf':
memberOf = str(attribute['vals'][0])
elif str(attribute['type']) == 'pwdLastSet':
Expand Down

0 comments on commit 416f189

Please sign in to comment.