2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-06-20 13:49:08 +04:00
# LDBSAMBA gets included in the ldb build when we are building ldb_ildap
# as a built-in module and this delutes the symbols in the ldb library with
# the symbols of all of ldb_ildap's dependencies.
2010-03-17 14:07:42 +03:00
2010-11-07 03:57:34 +03:00
bld.SAMBA_LIBRARY('ldbsamba',
2014-10-24 19:52:47 +04:00
source='ldif_handlers.c ldb_matching_rules.c',
2010-10-30 04:41:11 +04:00
autoproto='ldif_handlers_proto.h',
public_deps='ldb',
2016-01-04 04:01:53 +03:00
deps='samba-security ndr NDR_DRSBLOBS NDR_DNSP ldbwrap samdb-common SAMDB_SCHEMA tdb samba-errors',
2010-10-30 04:41:11 +04:00
private_library=True
)
bld.SAMBA_SUBSYSTEM('ldbwrap',
source='ldb_wrap.c',
public_headers='ldb_wrap.h',
2010-11-07 03:57:34 +03:00
deps='ldb samba-util ldbsamba samba-hostconfig'
2010-10-30 04:41:11 +04:00
)
2010-03-17 14:07:42 +03:00
2017-01-02 10:51:19 +03:00
for env in bld.gen_python_environments():
pyparam_util = bld.pyembed_libname('pyparam_util')
pyldb_util = bld.pyembed_libname('pyldb-util')
2018-04-04 11:53:14 +03:00
pyauth = 'pyauth'
if bld.env['IS_EXTRA_PYTHON']:
pyauth = 'extra-' + pyauth
2017-01-02 10:51:19 +03:00
bld.SAMBA_PYTHON('python_samba__ldb', 'pyldb.c',
2018-04-04 11:53:14 +03:00
deps='ldbsamba %s ldbwrap %s %s' % (pyparam_util, pyldb_util, pyauth),
2017-01-02 10:51:19 +03:00
realname='samba/_ldb.so')
2010-11-01 10:43:46 +03:00
bld.SAMBA_MODULE('ldbsamba_extensions',
source='samba_extensions.c',
init_function='ldb_samba_extensions_init',
module_init_name='ldb_init_module',
subsystem='ldb',
2010-11-07 03:57:34 +03:00
deps='ldb ldbsamba POPT_SAMBA POPT_CREDENTIALS cmdline-credentials gensec',
2010-11-01 10:43:46 +03:00
internal_module=False)
# the s4-internal ldap backend
bld.SAMBA_MODULE('ldb_ildap',
source='ldb_ildap.c',
init_function='ldb_ildap_init',
module_init_name='ldb_init_module',
2011-08-18 22:43:00 +04:00
deps='talloc cli-ldap samba-credentials auth_system_session',
2010-11-01 10:43:46 +03:00
internal_module=False,
subsystem='ldb')