1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
Gary Lockyer d4deb800e2 dsdb: Audit group membership changes
Log details of Group membership changes and User Primary Group changes.
Changes are logged in human readable and if samba has been built with
JANSSON support in JSON format.

Replicated updates are not logged.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-06-09 15:02:11 +02:00

88 lines
2.2 KiB
Python

#!/usr/bin/env python
bld.SAMBA_LIBRARY('dsdb-module',
source=[],
deps='DSDB_MODULE_HELPERS DSDB_MODULE_HELPER_RIDALLOC',
private_library=True,
grouping_library=True)
bld.SAMBA_SUBSYSTEM('DSDB_MODULE_HELPERS',
source='util.c acl_util.c schema_util.c netlogon.c audit_util.c',
autoproto='util_proto.h',
deps='ldb ndr samdb-common samba-security audit_logging'
)
bld.SAMBA_SUBSYSTEM('DSDB_MODULE_HELPER_RIDALLOC',
source='ridalloc.c',
autoproto='ridalloc.h',
deps='MESSAGING',
)
# Build the cmocka unit tests
bld.SAMBA_BINARY('test_unique_object_sids',
source='tests/test_unique_object_sids.c',
deps='''
talloc
samdb
cmocka
DSDB_MODULE_HELPERS
''',
install=False)
bld.SAMBA_BINARY('test_encrypted_secrets',
source='tests/test_encrypted_secrets.c',
deps='''
talloc
samba-util
samdb-common
samdb
cmocka
gnutls
DSDB_MODULE_HELPERS
''',
install=False)
#
# These tests require JANSSON, so we only build them if we are doing a selftest
# build.
#
if bld.CONFIG_GET('ENABLE_SELFTEST'):
bld.SAMBA_BINARY('test_audit_util',
source='tests/test_audit_util.c',
deps='''
talloc
samba-util
samdb-common
samdb
cmocka
audit_logging
DSDB_MODULE_HELPERS
''',
install=False)
bld.SAMBA_BINARY('test_audit_log',
source='tests/test_audit_log.c',
deps='''
talloc
samba-util
samdb-common
samdb
cmocka
audit_logging
DSDB_MODULE_HELPERS
''',
install=False)
bld.SAMBA_BINARY('test_group_audit',
source='tests/test_group_audit.c',
deps='''
talloc
samba-util
samdb-common
samdb
cmocka
audit_logging
DSDB_MODULE_HELPERS
''',
install=False)
if bld.AD_DC_BUILD_IS_ENABLED():
bld.PROCESS_SEPARATE_RULE("server")