dsdb audit_log: Add windows event codes to password changes
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 13 Dec 2018 22:09:20 +0000 (11:09 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 14 Dec 2018 17:57:52 +0000 (18:57 +0100)
commite97acc714d9052b56b947cc3a54510d3d3eb36fe
treee8b0304ca999343cca92efdcf40e09d4b9b6e5de
parent105cdd6c1cbc5e5889669e29a3c9fcbebdce55f9
dsdb audit_log: Add windows event codes to password changes

Add a new "eventId" element to the PasswordChange JSON log messages.
This contains a Windows Event Code Id either:
4723 Password changed
4724 Password reset

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/idl/windows_event_ids.idl
python/samba/tests/audit_log_pass_change.py
source4/dsdb/samdb/ldb_modules/audit_log.c
source4/dsdb/samdb/ldb_modules/tests/test_audit_log.c