2010-03-28 09:48:49 +11:00
#!/usr/bin/env python
2010-04-04 13:08:05 +10:00
bld.RECURSE('samdb/ldb_modules')
2010-03-17 20:21:47 +11:00
2010-11-07 01:52:13 +01:00
bld.SAMBA_LIBRARY('samdb',
2010-03-01 09:01:48 +11:00
source='samdb/samdb.c samdb/samdb_privilege.c samdb/cracknames.c repl/replicated_objects.c',
2010-11-29 03:05:36 +01:00
pc_files='samdb.pc',
2010-03-17 20:21:47 +11:00
autoproto='samdb/samdb_proto.h',
2010-10-04 16:14:10 +02:00
public_deps='krb5',
2011-08-21 02:24:25 +02:00
public_headers='',
2010-11-29 03:05:36 +01:00
vnum='0.0.1',
2016-01-04 01:01:53 +00:00
deps='ndr NDR_DRSUAPI NDR_DRSBLOBS auth_system_session LIBCLI_AUTH ndr SAMDB_SCHEMA ldbsamba samdb-common LIBCLI_DRSUAPI cli-ldap-common samba-util com_err authkrb5 samba-credentials ldbwrap samba-errors krb5samba ldb',
2010-03-17 20:21:47 +11:00
)
2010-10-24 11:26:09 -07:00
bld.SAMBA_LIBRARY('samdb-common',
2024-02-13 16:09:57 +13:00
source='common/util.c common/util_trusts.c common/util_groups.c common/util_samr.c common/dsdb_dn.c common/dsdb_access.c common/util_links.c common/rodc_helper.c gmsa/gkdi.c gmsa/util.c',
2010-10-23 16:05:50 -07:00
autoproto='common/proto.h',
private_library=True,
2024-02-13 16:09:57 +13:00
deps='ldb NDR_DRSBLOBS util_ldb LIBCLI_AUTH samba-hostconfig samba_socket cli-ldap-common flag_mapping UTIL_RUNCMD SAMBA_VERSION samba-security gkdi gmsa'
2010-10-23 16:05:50 -07:00
)
2010-03-17 20:21:47 +11:00
bld.SAMBA_SUBSYSTEM('SAMDB_SCHEMA',
2010-10-10 21:37:58 +02:00
source='schema/schema_init.c schema/schema_set.c schema/schema_query.c schema/schema_syntax.c schema/schema_description.c schema/schema_convert_to_ol.c schema/schema_inferiors.c schema/schema_prefixmap.c schema/schema_info_attr.c schema/schema_filtered.c schema/dsdb_dn.c',
2010-03-17 20:21:47 +11:00
autoproto='schema/proto.h',
2010-11-07 01:57:34 +01:00
deps='samdb-common NDR_DRSUAPI NDR_DRSBLOBS ldbsamba tevent'
2010-03-17 20:21:47 +11:00
)
2010-11-14 17:31:26 +01:00
bld.SAMBA_MODULE('service_drepl',
2010-09-16 13:02:23 +10:00
source='repl/drepl_service.c repl/drepl_periodic.c repl/drepl_partitions.c repl/drepl_out_pull.c repl/drepl_out_helpers.c repl/drepl_notify.c repl/drepl_ridalloc.c repl/drepl_extended.c repl/drepl_fsmo.c repl/drepl_secret.c repl/drepl_replica.c',
2010-03-17 20:21:47 +11:00
autoproto='repl/drepl_service_proto.h',
subsystem='service',
init_function='server_service_drepl_init',
2010-11-14 17:31:26 +01:00
deps='samdb process_model RPC_NDR_DRSUAPI',
internal_module=False,
2012-05-21 12:45:12 +03:00
enabled=bld.AD_DC_BUILD_IS_ENABLED()
2010-03-17 20:21:47 +11:00
)
2016-07-18 11:53:50 +12:00
bld.SAMBA_LIBRARY('dsdb_garbage_collect_tombstones',
source='kcc/garbage_collect_tombstones.c',
2016-11-22 13:45:50 +01:00
deps='samdb RPC_NDR_DRSUAPI',
2018-07-20 12:32:20 +03:00
private_library=True,
enabled=bld.AD_DC_BUILD_IS_ENABLED())
2010-03-17 20:21:47 +11:00
2018-06-01 16:07:46 +12:00
bld.SAMBA_LIBRARY('scavenge_dns_records',
source='kcc/scavenge_dns_records.c',
deps='samdb RPC_NDR_DRSUAPI dnsserver_common',
2018-07-20 12:32:20 +03:00
private_library=True,
enabled=bld.AD_DC_BUILD_IS_ENABLED())
2018-06-01 16:07:46 +12:00
2010-11-14 17:31:26 +01:00
bld.SAMBA_MODULE('service_kcc',
2017-09-18 09:55:21 +12:00
source='kcc/kcc_service.c kcc/kcc_connection.c kcc/kcc_periodic.c kcc/kcc_drs_replica_info.c',
2010-03-17 20:21:47 +11:00
autoproto='kcc/kcc_service_proto.h',
subsystem='service',
init_function='server_service_kcc_init',
2018-06-01 16:07:46 +12:00
deps='samdb process_model RPC_NDR_IRPC RPC_NDR_DRSUAPI UTIL_RUNCMD dsdb_garbage_collect_tombstones scavenge_dns_records',
2010-11-14 17:31:26 +01:00
internal_module=False,
2012-05-21 12:45:12 +03:00
enabled=bld.AD_DC_BUILD_IS_ENABLED()
2010-03-17 20:21:47 +11:00
)
2010-11-14 17:09:34 +01:00
bld.SAMBA_MODULE('service_dns_update',
2010-11-07 01:52:13 +01:00
source='dns/dns_update.c',
subsystem='service',
init_function='server_service_dnsupdate_init',
2016-01-04 01:01:53 +00:00
deps='samdb UTIL_RUNCMD samba-util ldb samdb-common samba-errors talloc auth_system_session samba-hostconfig',
2012-05-21 12:45:12 +03:00
internal_module=False,
enabled=bld.AD_DC_BUILD_IS_ENABLED()
2010-11-07 01:52:13 +01:00
)
2010-03-17 20:21:47 +11:00
2019-02-15 16:37:48 +13:00
pyldb_util = bld.pyembed_libname('pyldb-util')
pyrpc_util = bld.pyembed_libname('pyrpc_util')
pyparam_util = bld.pyembed_libname('pyparam_util')
bld.SAMBA_PYTHON('python_dsdb',
source='pydsdb.c',
# the dependency on dcerpc here is because gensec
# depends on dcerpc but the waf circular dependency finder
# removes it so we end up with unresolved symbols.
deps='samdb %s dcerpc com_err %s %s dsdb_garbage_collect_tombstones scavenge_dns_records' %\
(pyldb_util, pyrpc_util, pyparam_util),
2020-09-17 13:27:14 -06:00
realname='samba/dsdb.so'
2019-02-15 16:37:48 +13:00
)