3 # LDBSAMBA gets included in the ldb build when we are building ldb_ildap
4 # as a built-in module and this delutes the symbols in the ldb library with
5 # the symbols of all of ldb_ildap's dependencies.
7 bld.SAMBA_LIBRARY('ldbsamba',
8 source='ldif_handlers.c ldb_matching_rules.c',
9 autoproto='ldif_handlers_proto.h',
11 deps='samba-security ndr NDR_DRSBLOBS NDR_DNSP ldbwrap samdb-common SAMDB_SCHEMA tdb samba-errors',
15 bld.SAMBA_SUBSYSTEM('ldbwrap',
17 public_headers='ldb_wrap.h',
18 deps='ldb samba-util ldbsamba samba-hostconfig'
21 for env in bld.gen_python_environments():
22 pyparam_util = bld.pyembed_libname('pyparam_util')
23 pyldb_util = bld.pyembed_libname('pyldb-util')
25 if bld.env['IS_EXTRA_PYTHON']:
26 pyauth = 'extra-' + pyauth
27 bld.SAMBA_PYTHON('python_samba__ldb', 'pyldb.c',
28 deps='ldbsamba %s ldbwrap %s %s' % (pyparam_util, pyldb_util, pyauth),
29 realname='samba/_ldb.so')
31 bld.SAMBA_MODULE('ldbsamba_extensions',
32 source='samba_extensions.c',
33 init_function='ldb_samba_extensions_init',
34 module_init_name='ldb_init_module',
36 deps='ldb ldbsamba POPT_SAMBA POPT_CREDENTIALS cmdline-credentials gensec',
37 internal_module=False)
40 # the s4-internal ldap backend
41 bld.SAMBA_MODULE('ldb_ildap',
43 init_function='ldb_ildap_init',
44 module_init_name='ldb_init_module',
45 deps='talloc cli-ldap samba-credentials auth_system_session',
46 internal_module=False,