summaryrefslogtreecommitdiff
path: root/python/samba/tests/audit_log_pass_change.py
AgeCommit message (Collapse)AuthorFilesLines
2019-03-04tests: Work audit_log CLIENT_IP out from config instead of env varTim Beale1-1/+0
Instead of passing the CLIENT_IP to the audit_log tests, we can just work out the source-IP that the client will use from its smb.conf file. Because the audit_log tests are all run on the non-local testenv, they'll already use the client.conf and the 127.0.0.11 address. The main advantage of this change is it avoids having hardcoded IP addresses in the selftest framework. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-20tests (audit_auth)_log: PEP8 cleanup.Gary Lockyer1-2/+2
Remove Flake8 warnings from the audit and authentication JSON log tests. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-14dsdb audit_log: Add windows event codes to password changesGary Lockyer1-0/+12
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>
2018-12-10PY3: net.change_password & net.set_password take string not bytesNoel Power1-3/+3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-06-09dsdb: audit samdb and password changesGary Lockyer1-0/+324
Add audit logging of DSDB operations and password changes, log messages are logged in human readable format and if samba is commpile with JANSSON support in JSON format. Log: * Details all DSDB add, modify and delete operations. Logs attributes, values, session details, transaction id. * Transaction roll backs. * Prepare commit and commit failures. * Summary details of replicated updates. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>