2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2014-02-21 01:20:52 +04:00
# We do this because we do not want to depend on the KDC, only find and use it's header files. We do not want
if not bld.CONFIG_SET("USING_SYSTEM_KDC"):
kdc_include = "../heimdal/kdc"
else:
kdc_include = getattr(bld.env, "CPPPATH_KDC")
2010-11-14 19:09:34 +03:00
bld.SAMBA_MODULE('service_kdc',
2014-05-12 12:21:18 +04:00
source='kdc.c kpasswdd.c proxy.c',
subsystem='service',
init_function='server_service_kdc_init',
deps='''
kdc
HDB_SAMBA4
WDC_SAMBA4
samba-hostconfig
LIBTSOCKET
LIBSAMBA_TSOCKET
com_err
samba_server_gensec
PAC_GLUE
KDC-GLUE
2014-08-05 19:49:55 +04:00
KPASSWD_GLUE
2014-05-12 12:21:18 +04:00
''',
internal_module=False)
2010-03-17 14:07:42 +03:00
2011-11-30 00:45:25 +04:00
bld.SAMBA_LIBRARY('HDB_SAMBA4',
source='hdb-samba4.c hdb-samba4-plugin.c',
deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err',
2014-02-21 01:20:52 +04:00
includes=kdc_include,
2014-05-08 17:15:40 +04:00
private_library=True,
enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
2011-11-30 00:45:25 +04:00
)
2010-03-17 14:07:42 +03:00
2011-11-30 00:45:25 +04:00
# A plugin for Heimdal's kadmin for users who need to operate that tool
bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
source='hdb-samba4-plugin.c',
deps='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
2014-02-21 01:20:52 +04:00
includes=kdc_include,
2011-11-30 00:45:25 +04:00
link_name='modules/hdb/hdb_samba4.so',
realname='hdb_samba4.so',
install_path='${MODULESDIR}/hdb',
2011-12-07 04:43:01 +04:00
enabled = (bld.CONFIG_SET("USING_SYSTEM_KRB5") and bld.CONFIG_SET("USING_SYSTEM_HDB"))
2011-11-30 00:45:25 +04:00
)
2010-03-17 14:07:42 +03:00
2014-05-12 12:21:18 +04:00
bld.SAMBA_SUBSYSTEM('KDC-GLUE',
source='kdc-glue.c',
includes=kdc_include,
deps='hdb PAC_GLUE',
enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
)
2010-03-17 14:07:42 +03:00
bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
source='wdc-samba4.c',
2014-02-21 01:20:52 +04:00
includes=kdc_include,
2014-05-12 12:21:18 +04:00
deps='ldb auth4_sam auth_sam_reply samba-credentials hdb PAC_GLUE samba-hostconfig com_err KDC-GLUE',
2014-05-08 17:15:40 +04:00
enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
2010-03-17 14:07:42 +03:00
)
2014-05-07 18:52:42 +04:00
bld.SAMBA_SUBSYSTEM('sdb',
source='sdb.c',
includes=kdc_include,
deps='krb5',
)
2010-03-17 14:07:42 +03:00
bld.SAMBA_SUBSYSTEM('PAC_GLUE',
source='pac-glue.c',
2014-02-21 01:20:52 +04:00
includes=kdc_include,
2014-05-12 12:40:24 +04:00
deps='ldb auth4_sam auth_sam_reply samba-credentials samba-hostconfig com_err'
2010-03-17 14:07:42 +03:00
)
2010-10-29 04:48:06 +04:00
bld.SAMBA_LIBRARY('pac',
2010-11-07 04:05:51 +03:00
source=[],
deps='PAC_GLUE',
private_library=True,
grouping_library=True)
2010-10-29 04:48:06 +04:00
2010-03-17 14:07:42 +03:00
2010-10-24 22:26:09 +04:00
bld.SAMBA_LIBRARY('db-glue',
2010-03-17 14:07:42 +03:00
source='db-glue.c',
2012-04-20 01:54:57 +04:00
deps='ldb auth4_sam auth_sam_reply samba-credentials hdb samba-hostconfig com_err',
2011-03-19 02:43:50 +03:00
private_library=True,
2014-02-21 01:20:52 +04:00
includes=kdc_include,
2010-03-17 14:07:42 +03:00
)
2014-08-05 19:49:55 +04:00
bld.SAMBA_SUBSYSTEM('KPASSWD_GLUE',
source='kpasswd_glue.c',
includes=kdc_include,
deps='ldb com_err')
2010-03-17 14:07:42 +03:00
bld.SAMBA_SUBSYSTEM('MIT_SAMBA',
2014-04-25 13:55:17 +04:00
source='mit_samba.c',
deps='''
ldb
auth4_sam
auth_sam_reply
samba-credentials
hdb
db-glue
PAC_GLUE
samba-hostconfig
com_err
''',
enabled=not bld.CONFIG_SET('SAMBA4_USES_HEIMDAL'))