Skip to content

Commit

Permalink
bugfix in net.py: show user account enabled or not enabled (fortra#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobarlottini authored Aug 27, 2024
1 parent 6896f27 commit 9956d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def run(self, remoteName, remoteHost):
print("Comment".ljust(30), info['AdminComment'])
print("User's comment".ljust(30), info['UserComment'])
print("Country/region code".ljust(30), "000 (System Default)" if info['CountryCode'] == 0 else info['CountryCode'])
print("Account active".ljust(30), self.__b2s(info['WhichFields'] & samr.USER_ACCOUNT_DISABLED == samr.USER_ACCOUNT_DISABLED))
print("Account active".ljust(30), self.__b2s(info['UserAccountControl'] & samr.USER_ACCOUNT_DISABLED != samr.USER_ACCOUNT_DISABLED))
print("Account expires".ljust(30), self.__get_time_string(info['AccountExpires']))
print('')
print("Password last set".ljust(30), self.__get_time_string(info['PasswordLastSet']))
Expand Down

0 comments on commit 9956d45

Please sign in to comment.