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_AUTORID_SRC
= '''idmap_autorid.c'''
16 IDMAP_RW_SRC
= 'idmap_rw.c'
17 IDMAP_SRC
= 'idmap.c idmap_util.c idmap_tdb_common.c ${IDMAP_RW_SRC}'
19 bld
.SAMBA3_LIBRARY('idmap',
23 allow_undefined_symbols
=True,
26 bld
.SAMBA3_SUBSYSTEM('IDMAP_HASH',
27 source
=IDMAP_HASH_SRC
,
28 deps
='samba-util krb5samba',
31 bld
.SAMBA3_SUBSYSTEM('IDMAP_AD',
35 enabled
=bld
.env
.HAVE_LDAP
)
37 bld
.SAMBA3_MODULE('idmap_ad',
39 allow_undefined_symbols
=True,
43 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
44 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
46 bld
.SAMBA3_MODULE('idmap_rid',
48 allow_undefined_symbols
=True,
51 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
52 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_rid'))
54 bld
.SAMBA3_MODULE('idmap_passdb',
56 source
=IDMAP_PASSDB_SRC
,
57 deps
='samba-util pdb',
59 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_passdb'),
60 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_passdb'))
62 bld
.SAMBA3_MODULE('idmap_ldap',
64 source
=IDMAP_LDAP_SRC
,
65 deps
='smbldap smbldaphelper pdb',
67 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ldap'),
68 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ldap') and bld
.env
.HAVE_LDAP
)
70 bld
.SAMBA3_MODULE('idmap_nss',
75 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_nss'),
76 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_nss'))
78 bld
.SAMBA3_MODULE('idmap_tdb',
81 deps
='samba-util 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
,
89 deps
='samba-util tdb',
91 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_tdb2'),
92 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_tdb2'))
94 bld
.SAMBA3_MODULE('idmap_hash',
98 allow_undefined_symbols
=True,
100 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
101 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
103 bld
.SAMBA3_MODULE('idmap_autorid',
105 source
=IDMAP_AUTORID_SRC
,
106 deps
='samba-util tdb',
108 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_autorid'),
109 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_autorid'),
110 allow_undefined_symbols
=True)
113 NSS_INFO_TEMPLATE_SRC
= 'nss_info_template.c'
114 NSS_INFO_SRC
= 'nss_info.c'
116 bld
.SAMBA3_LIBRARY('nss_info',
118 deps
='samba-util param',
120 private_library
=True)
122 bld
.SAMBA3_MODULE('nss_info_template',
123 subsystem
='nss_info',
124 source
=NSS_INFO_TEMPLATE_SRC
,
125 deps
='samba-util krb5samba',
127 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('nss_info_template'),
128 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('nss_info_template'))
130 bld
.SAMBA3_MODULE('nss_info_hash',
131 subsystem
='nss_info',
134 allow_undefined_symbols
=True,
136 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_hash'),
137 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_hash'))
139 bld
.SAMBA3_MODULE('nss_info_rfc2307',
140 subsystem
='nss_info',
143 allow_undefined_symbols
=True,
145 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
146 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
148 bld
.SAMBA3_MODULE('nss_info_sfu20',
149 subsystem
='nss_info',
152 allow_undefined_symbols
=True,
154 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
155 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)
157 bld
.SAMBA3_MODULE('nss_info_sfu',
158 subsystem
='nss_info',
161 allow_undefined_symbols
=True,
163 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
164 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld
.env
.HAVE_LDAP
)