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 if bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL'):
10 bld
.SAMBA_MODULE('service_kdc',
11 source
='kdc-heimdal.c',
13 init_function
='server_service_kdc_init',
27 internal_module
=False)
29 if bld
.CONFIG_GET('SAMBA_USES_MITKDC'):
30 bld
.SAMBA_MODULE('service_kdc',
31 source
='kdc-service-mit.c',
33 init_function
='server_service_mitkdc_init',
46 internal_module
=False)
48 bld
.SAMBA_LIBRARY('HDB_SAMBA4',
49 source
='hdb-samba4.c hdb-samba4-plugin.c',
50 deps
='ldb auth4_sam common_auth samba-credentials hdb db-glue samba-hostconfig com_err sdb_hdb RPC_NDR_WINBIND',
53 enabled
=bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL')
56 # A plugin for Heimdal's kadmin for users who need to operate that tool
57 bld
.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
58 source
='hdb-samba4-plugin.c',
59 deps
='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
61 link_name
='modules/hdb/hdb_samba4.so',
62 realname
='hdb_samba4.so',
63 install_path
='${MODULESDIR}/hdb',
64 enabled
= (bld
.CONFIG_SET("USING_SYSTEM_KRB5") and bld
.CONFIG_SET("USING_SYSTEM_HDB"))
67 bld
.SAMBA_SUBSYSTEM('KDC-SERVER',
68 source
='kdc-server.c kdc-proxy.c',
77 kpasswd_flavor_src
= 'kpasswd-service.c kpasswd-helper.c'
78 if bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL'):
79 kpasswd_flavor_src
= kpasswd_flavor_src
+ ' kpasswd-service-heimdal.c'
80 elif bld
.CONFIG_GET('SAMBA_USES_MITKDC'):
81 kpasswd_flavor_src
= kpasswd_flavor_src
+ ' kpasswd-service-mit.c'
83 bld
.SAMBA_SUBSYSTEM('KPASSWD-SERVICE',
84 source
=kpasswd_flavor_src
,
92 bld
.SAMBA_SUBSYSTEM('KDC-GLUE',
96 enabled
=bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL')
99 bld
.SAMBA_SUBSYSTEM('WDC_SAMBA4',
100 source
='wdc-samba4.c',
101 includes
=kdc_include
,
102 deps
='ldb auth4_sam common_auth samba-credentials hdb PAC_GLUE samba-hostconfig com_err KDC-GLUE',
103 enabled
=bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL')
106 bld
.SAMBA_SUBSYSTEM('sdb',
108 includes
=kdc_include
,
112 bld
.SAMBA_SUBSYSTEM('sdb_hdb',
113 source
='sdb_to_hdb.c',
114 includes
=kdc_include
,
115 deps
='talloc sdb hdb',
116 autoproto
='sdb_hdb.h',
117 enabled
=bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL')
120 bld
.SAMBA_SUBSYSTEM('sdb_kdb',
121 source
='sdb_to_kdb.c',
122 includes
=kdc_include
,
124 autoproto
='sdb_kdb.h',
125 enabled
=bld
.CONFIG_SET('HAVE_KDB_H')
128 bld
.SAMBA_SUBSYSTEM('PAC_GLUE',
130 includes
=kdc_include
,
131 deps
='ldb auth4_sam common_auth samba-credentials samba-hostconfig com_err'
134 bld
.SAMBA_LIBRARY('pac',
137 private_library
=True,
138 grouping_library
=True)
141 bld
.SAMBA_LIBRARY('db-glue',
143 deps
='ldb auth4_sam common_auth samba-credentials sdb samba-hostconfig com_err RPC_NDR_IRPC MESSAGING',
144 private_library
=True,
145 includes
=kdc_include
,
148 bld
.SAMBA_SUBSYSTEM('KPASSWD_GLUE',
149 source
='kpasswd_glue.c',
150 includes
=kdc_include
,
153 bld
.SAMBA_SUBSYSTEM('MIT_KDC_IRPC',
154 source
='mit_kdc_irpc.c',
164 enabled
=(bld
.CONFIG_SET('SAMBA_USES_MITKDC') and bld
.CONFIG_SET('HAVE_KDB_H'))
167 bld
.SAMBA_SUBSYSTEM('MIT_SAMBA',
168 source
='mit_samba.c',
182 enabled
=(not bld
.CONFIG_SET('SAMBA4_USES_HEIMDAL') and bld
.CONFIG_SET('HAVE_KDB_H')) )
184 bld
.SAMBA_BINARY('samba4ktutil',
189 bld
.RECURSE('mit-kdb')