Debugging
This commit is contained in:
parent
96199c0558
commit
96243ab530
|
@ -345,9 +345,9 @@ def check_login_audit_policy(auditpol_logon_category, auditpol_logon_success_con
|
||||||
cleaned_line = re.sub(' +', ' ', last_line)
|
cleaned_line = re.sub(' +', ' ', last_line)
|
||||||
|
|
||||||
# Interpret the result
|
# Interpret the result
|
||||||
if auditpol_logon_success_conf in result.stdout:
|
if auditpol_logon_success_conf.encode(sys.getdefaultencoding()).decode('utf-8') in result.stdout:
|
||||||
result = 1
|
result = 1
|
||||||
elif auditpol_logon_noaudit_conf in result.stdout:
|
elif auditpol_logon_noaudit_conf.encode(sys.getdefaultencoding()).decode('utf-8') in result.stdout:
|
||||||
result = 0
|
result = 0
|
||||||
else:
|
else:
|
||||||
print("Unable to determine audit policy for Logon/Logoff events.", file=sys.stderr)
|
print("Unable to determine audit policy for Logon/Logoff events.", file=sys.stderr)
|
||||||
|
|
Loading…
Reference in New Issue