3 # 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
4 if not bld.CONFIG_SET("USING_SYSTEM_KDC"):
5 kdc_include = "../heimdal/kdc"
7 kdc_include = getattr(bld.env, "CPPPATH_KDC")
9 bld.SAMBA_MODULE('service_kdc',
10 source='kdc-heimdal.c kpasswd-helper.c kpasswd-heimdal.c',
12 init_function='server_service_kdc_init',
25 internal_module=False)
27 bld.SAMBA_LIBRARY('HDB_SAMBA4',
28 source='hdb-samba4.c hdb-samba4-plugin.c',
29 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err sdb_hdb',
32 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
35 # A plugin for Heimdal's kadmin for users who need to operate that tool
36 bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
37 source='hdb-samba4-plugin.c',
38 deps='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
40 link_name='modules/hdb/hdb_samba4.so',
41 realname='hdb_samba4.so',
42 install_path='${MODULESDIR}/hdb',
43 enabled = (bld.CONFIG_SET("USING_SYSTEM_KRB5") and bld.CONFIG_SET("USING_SYSTEM_HDB"))
46 bld.SAMBA_SUBSYSTEM('KDC-SERVER',
47 source='kdc-server.c kdc-proxy.c',
55 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL'))
57 bld.SAMBA_SUBSYSTEM('KDC-GLUE',
61 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
64 bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
65 source='wdc-samba4.c',
67 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb PAC_GLUE samba-hostconfig com_err KDC-GLUE',
68 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
71 bld.SAMBA_SUBSYSTEM('sdb',
77 bld.SAMBA_SUBSYSTEM('sdb_hdb',
78 source='sdb_to_hdb.c',
80 deps='talloc sdb hdb',
81 autoproto='sdb_hdb.h',
82 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
85 bld.SAMBA_SUBSYSTEM('sdb_kdb',
86 source='sdb_to_kdb.c',
89 autoproto='sdb_kdb.h',
90 enabled=bld.CONFIG_SET('HAVE_KDB_H')
93 bld.SAMBA_SUBSYSTEM('PAC_GLUE',
96 deps='ldb auth4_sam auth_sam_reply samba-credentials samba-hostconfig com_err'
99 bld.SAMBA_LIBRARY('pac',
102 private_library=True,
103 grouping_library=True)
106 bld.SAMBA_LIBRARY('db-glue',
108 deps='ldb auth4_sam auth_sam_reply samba-credentials sdb samba-hostconfig com_err',
109 private_library=True,
110 includes=kdc_include,
113 bld.SAMBA_SUBSYSTEM('KPASSWD_GLUE',
114 source='kpasswd_glue.c',
115 includes=kdc_include,
118 bld.SAMBA_SUBSYSTEM('MIT_SAMBA',
119 source='mit_samba.c',
133 enabled=(not bld.CONFIG_SET('SAMBA4_USES_HEIMDAL') and bld.CONFIG_SET('HAVE_KDB_H')) )
135 bld.SAMBA_BINARY('samba4ktutil',
140 bld.RECURSE('mit-kdb')