2010-03-28 09:48:49 +11:00
#!/usr/bin/env python
2019-02-15 16:37:48 +13:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyrpc_util = bld.pyembed_libname('pyrpc_util')
2023-12-19 17:04:35 +13:00
pyldb_util = bld.pyembed_libname('pyldb-util')
2019-02-15 16:37:48 +13:00
provision = bld.pyembed_libname('PROVISION')
2024-05-27 19:44:38 +12:00
name = bld.pyembed_libname('samba-net-join')
2019-02-15 16:37:48 +13:00
auto_proto='libnet_proto.h'
2024-05-27 19:44:38 +12:00
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',
2019-02-15 16:37:48 +13:00
autoproto=auto_proto,
2022-07-26 15:43:31 +02:00
deps='INIT_SAMR',
2024-05-27 19:44:38 +12:00
public_deps='samba-credentials dcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser LIBCLI_SAMSYNC LIBTSOCKET GNUTLS_HELPERS',
private_library=True
2019-02-15 16:37:48 +13:00
)
2018-04-05 16:58:33 +01:00
2024-05-27 19:44:38 +12:00
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()
)
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('python_net',
source='py_net.c',
2024-05-27 19:44:38 +12:00
deps=f'samba-net {name} {pyrpc_util} {pytalloc_util}',
2019-02-15 16:37:48 +13:00
realname='samba/net.so'
)
2010-03-17 22:07:42 +11:00
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('python_dckeytab',
source='py_net_dckeytab.c libnet_export_keytab.c',
2023-12-20 18:10:45 +13:00
deps='KERBEROS_SRV_KEYTAB KERBEROS_UTIL %s %s db-glue krb5 com_err' % (pyrpc_util, pyldb_util),
2019-02-15 16:37:48 +13:00
realname='samba/dckeytab.so',
enabled=bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED')
)