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_tdb_common.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
,
40 deps
='samba-util krb5samba',
43 bld
.SAMBA3_SUBSYSTEM('IDMAP_AD',
47 enabled
=bld
.env
.HAVE_LDAP
)
49 bld
.SAMBA3_MODULE('idmap_ad',
51 allow_undefined_symbols
=True,
55 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
56 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
58 bld
.SAMBA3_MODULE('idmap_rid',
60 allow_undefined_symbols
=True,
63 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
64 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
66 bld
.SAMBA3_MODULE('idmap_passdb',
68 source
=IDMAP_PASSDB_SRC
,
69 deps
='samba-util pdb',
71 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
72 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
74 bld
.SAMBA3_MODULE('idmap_ldap',
76 source
=IDMAP_LDAP_SRC
,
79 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
80 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld
.env
.HAVE_LDAP
)
82 bld
.SAMBA3_MODULE('idmap_nss',
87 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
88 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
90 bld
.SAMBA3_MODULE('idmap_tdb',
93 deps
='samba-util tdb',
95 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb'),
96 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb'))
98 bld
.SAMBA3_MODULE('idmap_tdb2',
100 source
=IDMAP_TDB2_SRC
,
101 deps
='samba-util tdb',
103 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
104 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
106 bld
.SAMBA3_MODULE('idmap_hash',
110 allow_undefined_symbols
=True,
112 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
113 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
115 bld
.SAMBA3_MODULE('idmap_adex',
119 allow_undefined_symbols
=True,
121 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
122 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld
.env
.HAVE_LDAP
)
124 bld
.SAMBA3_MODULE('idmap_autorid',
126 source
=IDMAP_AUTORID_SRC
,
127 deps
='samba-util tdb',
129 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
130 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
131 allow_undefined_symbols
=True)
134 NSS_INFO_TEMPLATE_SRC
= 'nss_info_template.c'
135 NSS_INFO_SRC
= 'nss_info.c'
137 bld
.SAMBA3_LIBRARY('nss_info',
139 deps
='samba-util param',
141 private_library
=True)
143 bld
.SAMBA3_MODULE('nss_info_template',
144 subsystem
='nss_info',
145 source
=NSS_INFO_TEMPLATE_SRC
,
146 deps
='samba-util krb5samba',
148 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
149 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
151 bld
.SAMBA3_MODULE('nss_info_adex',
152 subsystem
='nss_info',
155 allow_undefined_symbols
=True,
157 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_adex'),
158 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_adex') and bld
.env
.HAVE_LDAP
)
160 bld
.SAMBA3_MODULE('nss_info_hash',
161 subsystem
='nss_info',
164 allow_undefined_symbols
=True,
166 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
167 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
169 bld
.SAMBA3_MODULE('nss_info_rfc2307',
170 subsystem
='nss_info',
173 allow_undefined_symbols
=True,
175 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
176 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
178 bld
.SAMBA3_MODULE('nss_info_sfu20',
179 subsystem
='nss_info',
182 allow_undefined_symbols
=True,
184 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
185 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
187 bld
.SAMBA3_MODULE('nss_info_sfu',
188 subsystem
='nss_info',
191 allow_undefined_symbols
=True,
193 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
194 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)