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_LIBRARY('idmap',
29 allow_undefined_symbols
=True,
32 bld
.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
33 source
=IDMAP_ADEX_SRC
,
36 enabled
=bld
.env
.HAVE_LDAP
)
38 bld
.SAMBA3_SUBSYSTEM('IDMAP_HASH',
39 source
=IDMAP_HASH_SRC
,
43 bld
.SAMBA3_SUBSYSTEM('IDMAP_AD',
47 enabled
=bld
.env
.HAVE_LDAP
)
49 bld
.SAMBA3_MODULE('idmap_ad',
54 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
55 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad' and bld
.env
.HAVE_LDAP
))
57 bld
.SAMBA3_MODULE('idmap_rid',
59 allow_undefined_symbols
=True,
62 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
63 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
65 bld
.SAMBA3_MODULE('idmap_passdb',
67 source
=IDMAP_PASSDB_SRC
,
68 deps
='samba-util pdb',
70 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
71 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
73 bld
.SAMBA3_MODULE('idmap_ldap',
75 source
=IDMAP_LDAP_SRC
,
78 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
79 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld
.env
.HAVE_LDAP
)
81 bld
.SAMBA3_MODULE('idmap_nss',
86 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
87 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
89 bld
.SAMBA3_MODULE('idmap_tdb',
92 deps
='samba-util tdb',
94 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
95 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
97 bld
.SAMBA3_MODULE('idmap_tdb2',
99 source
=IDMAP_TDB2_SRC
,
100 deps
='samba-util tdb',
102 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
103 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
105 bld
.SAMBA3_MODULE('idmap_hash',
109 allow_undefined_symbols
=True,
111 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
112 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
114 bld
.SAMBA3_MODULE('idmap_adex',
118 allow_undefined_symbols
=True,
120 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
121 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld
.env
.HAVE_LDAP
)
123 bld
.SAMBA3_MODULE('idmap_autorid',
125 source
=IDMAP_AUTORID_SRC
,
126 deps
='samba-util tdb',
128 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
129 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
130 allow_undefined_symbols
=True)
133 NSS_INFO_TEMPLATE_SRC
= 'nss_info_template.c'
134 NSS_INFO_SRC
= 'nss_info.c'
136 bld
.SAMBA3_LIBRARY('nss_info',
138 deps
='samba-util param',
140 private_library
=True)
142 bld
.SAMBA3_MODULE('nss_info_template',
143 subsystem
='nss_info',
144 source
=NSS_INFO_TEMPLATE_SRC
,
147 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
148 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
150 bld
.SAMBA3_MODULE('nss_info_adex',
151 subsystem
='nss_info',
154 allow_undefined_symbols
=True,
156 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
157 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld
.env
.HAVE_LDAP
)
159 bld
.SAMBA3_MODULE('nss_info_hash',
160 subsystem
='nss_info',
163 allow_undefined_symbols
=True,
165 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
166 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
168 bld
.SAMBA3_MODULE('nss_info_rfc2307',
169 subsystem
='nss_info',
172 allow_undefined_symbols
=True,
174 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
175 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
177 bld
.SAMBA3_MODULE('nss_info_sfu20',
178 subsystem
='nss_info',
181 allow_undefined_symbols
=True,
183 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
184 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
186 bld
.SAMBA3_MODULE('nss_info_sfu',
187 subsystem
='nss_info',
190 allow_undefined_symbols
=True,
192 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
193 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)