mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
42cafe481d
Enable LDAPS lookups Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
38 lines
1.7 KiB
Python
38 lines
1.7 KiB
Python
#!/usr/bin/env python
|
|
|
|
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
|
pyrpc_util = bld.pyembed_libname('pyrpc_util')
|
|
pyldb_util = bld.pyembed_libname('pyldb-util')
|
|
provision = bld.pyembed_libname('PROVISION')
|
|
name = bld.pyembed_libname('samba-net-join')
|
|
auto_proto='libnet_proto.h'
|
|
bld.SAMBA_LIBRARY('samba-net',
|
|
source='libnet.c libnet_passwd.c libnet_time.c libnet_rpc.c libnet_site.c libnet_become_dc.c libnet_unbecome_dc.c libnet_user.c libnet_group.c libnet_share.c libnet_lookup.c libnet_domain.c userinfo.c groupinfo.c userman.c groupman.c prereq_domain.c',
|
|
autoproto=auto_proto,
|
|
deps='INIT_SAMR',
|
|
public_deps='samba-credentials dcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS NETLOGON_PING LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser LIBCLI_SAMSYNC LIBTSOCKET GNUTLS_HELPERS',
|
|
private_library=True
|
|
)
|
|
|
|
bld.SAMBA_LIBRARY(name,
|
|
source='libnet_join.c libnet_vampire.c',
|
|
autoproto='libnet_join_proto.h',
|
|
deps=f'samba-net {provision}',
|
|
private_library=True,
|
|
pyembed=True,
|
|
enabled=bld.PYTHON_BUILD_IS_ENABLED()
|
|
)
|
|
|
|
bld.SAMBA_PYTHON('python_net',
|
|
source='py_net.c',
|
|
deps=f'samba-net {name} {pyrpc_util} {pytalloc_util}',
|
|
realname='samba/net.so'
|
|
)
|
|
|
|
bld.SAMBA_PYTHON('python_dckeytab',
|
|
source='py_net_dckeytab.c libnet_export_keytab.c',
|
|
deps='KERBEROS_SRV_KEYTAB KERBEROS_UTIL %s %s db-glue krb5 com_err' % (pyrpc_util, pyldb_util),
|
|
realname='samba/dckeytab.so',
|
|
enabled=bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED')
|
|
)
|