3 IDMAP_AD_SRC
= '''idmap_ad.c'''
4 IDMAP_RID_SRC
= '''idmap_rid.c'''
5 IDMAP_PASSDB_SRC
= '''idmap_passdb.c'''
6 IDMAP_LDAP_SRC
= '''idmap_ldap.c'''
7 IDMAP_NSS_SRC
= '''idmap_nss.c'''
8 IDMAP_TDB_SRC
= '''idmap_tdb.c'''
9 IDMAP_TDB2_SRC
= '''idmap_tdb2.c'''
11 IDMAP_HASH_SRC
= '''idmap_hash/idmap_hash.c
12 idmap_hash/mapfile.c'''
14 IDMAP_ADEX_SRC
= '''idmap_adex/idmap_adex.c
15 idmap_adex/cell_util.c
16 idmap_adex/likewise_cell.c
17 idmap_adex/provider_unified.c
19 idmap_adex/domain_util.c'''
20 IDMAP_AUTORID_SRC
= '''idmap_autorid.c'''
22 IDMAP_RW_SRC
= 'idmap_rw.c'
23 IDMAP_SRC
= 'idmap.c idmap_util.c ${IDMAP_RW_SRC}'
25 bld
.SAMBA3_SUBSYSTEM('idmap',
29 bld
.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
30 source
=IDMAP_ADEX_SRC
,
32 enabled
=bld
.env
.HAVE_LDAP
)
34 bld
.SAMBA3_SUBSYSTEM('IDMAP_HASH',
35 source
=IDMAP_HASH_SRC
,
38 bld
.SAMBA3_SUBSYSTEM('IDMAP_AD',
41 enabled
=bld
.env
.HAVE_LDAP
)
43 bld
.SAMBA3_MODULE('idmap_ad',
48 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
49 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad' and bld
.env
.HAVE_LDAP
))
51 bld
.SAMBA3_MODULE('idmap_rid',
55 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
56 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
58 bld
.SAMBA3_MODULE('idmap_passdb',
60 source
=IDMAP_PASSDB_SRC
,
62 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
63 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
65 bld
.SAMBA3_MODULE('idmap_ldap',
67 source
=IDMAP_LDAP_SRC
,
69 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
70 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld
.env
.HAVE_LDAP
)
72 bld
.SAMBA3_MODULE('idmap_nss',
76 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
77 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
79 bld
.SAMBA3_MODULE('idmap_tdb',
83 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
84 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
86 bld
.SAMBA3_MODULE('idmap_tdb2',
88 source
=IDMAP_TDB2_SRC
,
90 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
91 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
93 bld
.SAMBA3_MODULE('idmap_hash',
98 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
99 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
101 bld
.SAMBA3_MODULE('idmap_adex',
106 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
107 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld
.env
.HAVE_LDAP
)
109 bld
.SAMBA3_MODULE('idmap_autorid',
111 source
=IDMAP_AUTORID_SRC
,
113 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
114 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'))
117 NSS_INFO_TEMPLATE_SRC
= 'nss_info_template.c'
118 NSS_INFO_SRC
= 'nss_info.c'
120 bld
.SAMBA3_SUBSYSTEM('nss_info',
124 bld
.SAMBA3_MODULE('nss_info_template',
125 subsystem
='nss_info',
126 source
=NSS_INFO_TEMPLATE_SRC
,
128 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
129 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
131 bld
.SAMBA3_MODULE('nss_info_adex',
132 subsystem
='nss_info',
136 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
137 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld
.env
.HAVE_LDAP
)
139 bld
.SAMBA3_MODULE('nss_info_hash',
140 subsystem
='nss_info',
144 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
145 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
147 bld
.SAMBA3_MODULE('nss_info_rfc2307',
148 subsystem
='nss_info',
152 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
153 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
155 bld
.SAMBA3_MODULE('nss_info_sfu20',
156 subsystem
='nss_info',
160 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
161 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
163 bld
.SAMBA3_MODULE('nss_info_sfu',
164 subsystem
='nss_info',
168 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
169 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)