auth: Explain why GSS_KRB5_CRED_NO_CI_FLAGS_X is needed
[Samba.git] / source4 / kdc / wscript_build
blob892601269533f04061425c8c0a829bd9ef077e85
1 #!/usr/bin/env python
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"
6 else:
7 kdc_include = getattr(bld.env, "CPPPATH_KDC")
9 bld.SAMBA_MODULE('service_kdc',
10 source='kdc.c kpasswdd.c proxy.c',
11 subsystem='service',
12 init_function='server_service_kdc_init',
13 deps='kdc HDB_SAMBA4 WDC_SAMBA4 samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET com_err samba_server_gensec PAC_GLUE',
14 internal_module=False,
18 bld.SAMBA_LIBRARY('HDB_SAMBA4',
19 source='hdb-samba4.c hdb-samba4-plugin.c',
20 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err',
21 includes=kdc_include,
22 private_library=True,
23 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
26 # A plugin for Heimdal's kadmin for users who need to operate that tool
27 bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
28 source='hdb-samba4-plugin.c',
29 deps='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
30 includes=kdc_include,
31 link_name='modules/hdb/hdb_samba4.so',
32 realname='hdb_samba4.so',
33 install_path='${MODULESDIR}/hdb',
34 enabled = (bld.CONFIG_SET("USING_SYSTEM_KRB5") and bld.CONFIG_SET("USING_SYSTEM_HDB"))
37 bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
38 source='wdc-samba4.c',
39 includes=kdc_include,
40 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb PAC_GLUE samba-hostconfig com_err',
41 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
45 bld.SAMBA_SUBSYSTEM('PAC_GLUE',
46 source='pac-glue.c',
47 includes=kdc_include,
48 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb samba-hostconfig com_err'
51 bld.SAMBA_LIBRARY('pac',
52 source=[],
53 deps='PAC_GLUE',
54 private_library=True,
55 grouping_library=True)
58 bld.SAMBA_LIBRARY('db-glue',
59 source='db-glue.c',
60 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb samba-hostconfig com_err',
61 private_library=True,
62 includes=kdc_include,
65 bld.SAMBA_SUBSYSTEM('MIT_SAMBA',
66 source='mit_samba.c',
67 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue PAC_GLUE samba-hostconfig com_err'
71 bld.SAMBA_LIBRARY('mit-samba',
72 source='',
73 deps='MIT_SAMBA',
74 external_library=True,
75 realname='mit_samba.so'