3 pytalloc_util
= bld
.pyembed_libname('pytalloc-util')
4 pyrpc_util
= bld
.pyembed_libname('pyrpc_util')
5 pyldb_util
= bld
.pyembed_libname('pyldb-util')
6 provision
= bld
.pyembed_libname('PROVISION')
7 name
= bld
.pyembed_libname('samba-net-join')
8 auto_proto
='libnet_proto.h'
9 bld
.SAMBA_LIBRARY('samba-net',
10 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',
13 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',
17 bld
.SAMBA_LIBRARY(name
,
18 source
='libnet_join.c libnet_vampire.c',
19 autoproto
='libnet_join_proto.h',
20 deps
=f
'samba-net {provision}',
23 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
26 bld
.SAMBA_PYTHON('python_net',
28 deps
=f
'samba-net {name} {pyrpc_util} {pytalloc_util}',
29 realname
='samba/net.so'
32 bld
.SAMBA_PYTHON('python_dckeytab',
33 source
='py_net_dckeytab.c libnet_export_keytab.c',
34 deps
='KERBEROS_SRV_KEYTAB KERBEROS_UTIL %s %s db-glue krb5 com_err' % (pyrpc_util
, pyldb_util
),
35 realname
='samba/dckeytab.so',
36 enabled
=bld
.CONFIG_SET('AD_DC_BUILD_IS_ENABLED')