s3-auth: make_new_system_info_session() not query passdb
[Samba/vl.git] / source3 / winbindd / wscript_build
blob86d50ee3053f06af648e646ff3f9aa00b2539a53
1 #!/usr/bin/env python
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
18 idmap_adex/gc_util.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',
26 source=IDMAP_SRC,
27 deps='samba-util',
28 vars=locals(),
29 allow_undefined_symbols=True,
30 private_library=True)
32 bld.SAMBA3_SUBSYSTEM('IDMAP_ADEX',
33 source=IDMAP_ADEX_SRC,
34 deps='ads',
35 vars=locals(),
36 enabled=bld.env.HAVE_LDAP)
38 bld.SAMBA3_SUBSYSTEM('IDMAP_HASH',
39 source=IDMAP_HASH_SRC,
40 deps='samba-util krb5samba',
41 vars=locals())
43 bld.SAMBA3_SUBSYSTEM('IDMAP_AD',
44 source=IDMAP_AD_SRC,
45 deps='ads nss_info',
46 vars=locals(),
47 enabled=bld.env.HAVE_LDAP)
49 bld.SAMBA3_MODULE('idmap_ad',
50 subsystem='idmap',
51 allow_undefined_symbols=True,
52 source='',
53 deps='IDMAP_AD',
54 init_function='',
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',
59 subsystem='idmap',
60 allow_undefined_symbols=True,
61 source=IDMAP_RID_SRC,
62 init_function='',
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',
67 subsystem='idmap',
68 source=IDMAP_PASSDB_SRC,
69 deps='samba-util pdb',
70 init_function='',
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',
75 subsystem='idmap',
76 source=IDMAP_LDAP_SRC,
77 deps='smbldap',
78 init_function='',
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',
83 subsystem='idmap',
84 source=IDMAP_NSS_SRC,
85 deps='samba-util',
86 init_function='',
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',
91 subsystem='idmap',
92 source=IDMAP_TDB_SRC,
93 deps='samba-util tdb',
94 init_function='',
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',
99 subsystem='idmap',
100 source=IDMAP_TDB2_SRC,
101 deps='samba-util tdb',
102 init_function='',
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',
107 subsystem='idmap',
108 source='',
109 deps='IDMAP_HASH',
110 allow_undefined_symbols=True,
111 init_function='',
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',
116 subsystem='idmap',
117 source='',
118 deps='IDMAP_ADEX',
119 allow_undefined_symbols=True,
120 init_function='',
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',
125 subsystem='idmap',
126 source=IDMAP_AUTORID_SRC,
127 deps='samba-util tdb',
128 init_function='',
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',
138 source=NSS_INFO_SRC,
139 deps='samba-util param',
140 vars=locals(),
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',
147 init_function='',
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',
153 source='',
154 deps='IDMAP_ADEX',
155 allow_undefined_symbols=True,
156 init_function='',
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',
162 source='',
163 deps='IDMAP_HASH',
164 allow_undefined_symbols=True,
165 init_function='',
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',
171 source='',
172 deps='IDMAP_AD',
173 allow_undefined_symbols=True,
174 init_function='',
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',
180 source='',
181 deps='IDMAP_AD',
182 allow_undefined_symbols=True,
183 init_function='',
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',
189 source='',
190 deps='IDMAP_AD',
191 allow_undefined_symbols=True,
192 init_function='',
193 internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_ad'),
194 enabled=bld.SAMBA3_IS_ENABLED_MODULE('idmap_ad') and bld.env.HAVE_LDAP)