s4:heimdal: import lorikeet-heimdal-202201172009 (commit 5a0b45cd723628b3690ea848548b...
[samba.git] / source4 / heimdal / tests / kdc / Makefile.am
1 include $(top_srcdir)/Makefile.am.common
2
3 noinst_DATA = \
4         an2ln-db.txt \
5         kdc-tester4.json \
6         krb5.conf \
7         krb5-cccol.conf \
8         krb5-authz.conf \
9         krb5-authz2.conf \
10         krb5-canon.conf \
11         krb5-canon2.conf \
12         krb5-hdb-mitdb.conf \
13         krb5-weak.conf \
14         krb5-pkinit.conf \
15         krb5-bx509.conf \
16         krb5-httpkadmind.conf \
17         krb5-pkinit-win.conf \
18         krb5-master2.conf \
19         krb5-slave2.conf \
20         krb5-slave.conf
21
22 check_SCRIPTS = $(SCRIPT_TESTS) 
23
24 SCRIPT_TESTS = \
25         check-authz \
26         check-canon \
27         check-cc \
28         check-delegation \
29         check-des \
30         check-digest \
31         check-fast \
32         check-kadmin \
33         check-hdb-mitdb \
34         check-kdc \
35         check-kdc-weak \
36         check-keys \
37         check-kpasswdd \
38         check-pkinit \
39         check-bx509 \
40         check-httpkadmind \
41         check-iprop \
42         check-referral \
43         check-tester \
44         check-uu
45
46 TESTS = $(SCRIPT_TESTS)
47
48 port = 49188
49 admport = 49189
50 admport2 = 49190
51 pwport = 49191
52 restport = 49192
53 restport2 = 49193
54 ipropport = 49194
55 ipropport2 = 49195
56 pkinit_ticket_max_life_from_cert = 0
57
58 if HAVE_DLOPEN
59 do_dlopen = -e 's,[@]DLOPEN[@],true,g'
60 else
61 do_dlopen = -e 's,[@]DLOPEN[@],false,g'
62 endif
63
64 do_subst = $(heim_verbose)sed $(do_dlopen) \
65         -e 's,[@]env_setup[@],$(top_builddir)/tests/bin/setup-env,g' \
66         -e 's,[@]top_srcdir[@],$(top_srcdir),g' \
67         -e 's,[@]srcdir[@],$(srcdir),g' \
68         -e 's,[@]port[@],$(port),g' \
69         -e 's,[@]admport[@],$(admport),g' \
70         -e 's,[@]admport2[@],$(admport2),g' \
71         -e 's,[@]bx509port[@],$(restport),g' \
72         -e 's,[@]restport[@],$(restport),g' \
73         -e 's,[@]restport2[@],$(restport2),g' \
74         -e 's,[@]pwport[@],$(pwport),g' \
75         -e 's,[@]ipropport[@],$(ipropport),g' \
76         -e 's,[@]ipropport2[@],$(ipropport2),g' \
77         -e 's,[@]objdir[@],$(top_builddir)/tests/kdc,g' \
78         -e 's,[@]top_builddir[@],$(top_builddir),g' \
79         -e 's,[@]db_type[@],$(db_type),g' \
80         -e 's,[@]max_life_from_cert[@],$(pkinit_ticket_max_life_from_cert),g' \
81         -e 's,[@]ENABLE_AFS_STRING_TO_KEY[@],$(ENABLE_AFS_STRING_TO_KEY),' \
82         -e 's,[@]EGREP[@],$(EGREP),g' 
83
84 chmod = chmod
85
86 LDADD = ../../lib/krb5/libkrb5.la $(LIB_roken)
87
88 check-authz: check-authz.in Makefile krb5-authz.conf krb5-authz2.conf
89         $(do_subst) < $(srcdir)/check-authz.in > check-authz.tmp && \
90         $(chmod) +x check-authz.tmp && \
91         mv check-authz.tmp check-authz
92
93 check-canon: check-canon.in Makefile krb5-canon.conf krb5-canon2.conf
94         $(do_subst) < $(srcdir)/check-canon.in > check-canon.tmp && \
95         $(chmod) +x check-canon.tmp && \
96         mv check-canon.tmp check-canon
97
98 check-cc: check-cc.in Makefile
99         $(do_subst) < $(srcdir)/check-cc.in > check-cc.tmp && \
100         $(chmod) +x check-cc.tmp && \
101         mv check-cc.tmp check-cc
102
103 check-delegation: check-delegation.in Makefile
104         $(do_subst) < $(srcdir)/check-delegation.in > check-delegation.tmp && \
105         $(chmod) +x check-delegation.tmp && \
106         mv check-delegation.tmp check-delegation
107
108 check-des: check-des.in Makefile krb5.conf
109         $(do_subst) < $(srcdir)/check-des.in > check-des.tmp && \
110         $(chmod) +x check-des.tmp && \
111         mv check-des.tmp check-des
112
113 check-hdb-mitdb: check-hdb-mitdb.in Makefile krb5-hdb-mitdb.conf
114         $(do_subst) < $(srcdir)/check-hdb-mitdb.in > check-hdb-mitdb.tmp && \
115         $(chmod) +x check-hdb-mitdb.tmp && \
116         mv check-hdb-mitdb.tmp check-hdb-mitdb
117
118 check-fast: check-fast.in Makefile
119         $(do_subst) < $(srcdir)/check-fast.in > check-fast.tmp && \
120         $(chmod) +x check-fast.tmp && \
121         mv check-fast.tmp check-fast
122
123 check-kdc: check-kdc.in Makefile
124         $(do_subst) < $(srcdir)/check-kdc.in > check-kdc.tmp && \
125         $(chmod) +x check-kdc.tmp && \
126         mv check-kdc.tmp check-kdc
127
128 check-kdc-weak: check-kdc-weak.in Makefile
129         $(do_subst) < $(srcdir)/check-kdc-weak.in > check-kdc-weak.tmp && \
130         $(chmod) +x check-kdc-weak.tmp && \
131         mv check-kdc-weak.tmp check-kdc-weak
132
133 check-tester: check-tester.in kdc-tester4.json Makefile
134         $(do_subst) < $(srcdir)/check-tester.in > check-tester.tmp && \
135         $(chmod) +x check-tester.tmp && \
136         mv check-tester.tmp check-tester
137
138 check-keys: check-keys.in Makefile
139         $(do_subst) < $(srcdir)/check-keys.in > check-keys.tmp && \
140         $(chmod) +x check-keys.tmp && \
141         mv check-keys.tmp check-keys
142
143 check-kinit: check-kinit.in Makefile
144         $(do_subst) < $(srcdir)/check-kinit.in > check-kinit.tmp && \
145         $(chmod) +x check-kinit.tmp && \
146         mv check-kinit.tmp check-kinit
147
148 check-kadmin: check-kadmin.in Makefile
149         $(do_subst) < $(srcdir)/check-kadmin.in > check-kadmin.tmp && \
150         $(chmod) +x check-kadmin.tmp && \
151         mv check-kadmin.tmp check-kadmin
152
153 check-uu: check-uu.in Makefile
154         $(do_subst) < $(srcdir)/check-uu.in > check-uu.tmp && \
155         $(chmod) +x check-uu.tmp && \
156         mv check-uu.tmp check-uu
157
158 check-pkinit: check-pkinit.in Makefile krb5-pkinit.conf krb5-pkinit2.conf
159         $(do_subst) < $(srcdir)/check-pkinit.in > check-pkinit.tmp && \
160         $(chmod) +x check-pkinit.tmp && \
161         mv check-pkinit.tmp check-pkinit
162
163 check-bx509: check-bx509.in Makefile krb5-bx509.conf
164         $(do_subst) < $(srcdir)/check-bx509.in > check-bx509.tmp && \
165         $(chmod) +x check-bx509.tmp && \
166         mv check-bx509.tmp check-bx509
167
168 check-httpkadmind: check-httpkadmind.in Makefile krb5-httpkadmind.conf
169         $(do_subst) < $(srcdir)/check-httpkadmind.in > check-httpkadmind.tmp && \
170         $(chmod) +x check-httpkadmind.tmp && \
171         mv check-httpkadmind.tmp check-httpkadmind
172
173 check-iprop: check-iprop.in Makefile krb5.conf krb5-master2.conf krb5-slave.conf krb5-slave2.conf
174         $(do_subst) < $(srcdir)/check-iprop.in > check-iprop.tmp && \
175         $(chmod) +x check-iprop.tmp && \
176         mv check-iprop.tmp check-iprop
177
178 check-digest: check-digest.in Makefile
179         $(do_subst) < $(srcdir)/check-digest.in > check-digest.tmp && \
180         $(chmod) +x check-digest.tmp && \
181         mv check-digest.tmp check-digest
182
183 check-referral: check-referral.in Makefile
184         $(do_subst) < $(srcdir)/check-referral.in > check-referral.tmp && \
185         $(chmod) +x check-referral.tmp && \
186         mv check-referral.tmp check-referral
187
188 check-kpasswdd: check-kpasswdd.in Makefile
189         $(do_subst) < $(srcdir)/check-kpasswdd.in > check-kpasswdd.tmp && \
190         $(chmod) +x check-kpasswdd.tmp && \
191         mv check-kpasswdd.tmp check-kpasswdd
192
193 kdc-tester4.json: kdc-tester4.json.in Makefile
194         $(do_subst) < $(srcdir)/kdc-tester4.json.in > kdc-tester4.json.tmp && \
195         mv kdc-tester4.json.tmp kdc-tester4.json
196
197 krb5.conf: krb5.conf.in Makefile
198         $(do_subst) \
199            -e 's,[@]WEAK[@],false,g' \
200            -e 's,[@]dk[@],,g' \
201            -e 's,[@]messages[@],messages,g' \
202            -e 's,[@]ipropstats[@],iprop-stats,g' \
203            -e 's,[@]signalsocket[@],signal,g' \
204            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5.conf.in > krb5.conf.tmp && \
205         mv krb5.conf.tmp krb5.conf
206
207 krb5-cccol.conf: krb5-cccol.conf.in Makefile
208         $(do_subst) \
209            -e 's,[@]WEAK[@],false,g' \
210            -e 's,[@]dk[@],,g' \
211            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5-cccol.conf.in > krb5-cccol.conf.tmp && \
212         mv krb5-cccol.conf.tmp krb5-cccol.conf
213
214 krb5-authz.conf: krb5-authz.conf.in Makefile
215         $(do_subst) < $(srcdir)/krb5-authz.conf.in > krb5-authz.conf.tmp && \
216         mv krb5-authz.conf.tmp krb5-authz.conf
217
218 krb5-authz2.conf: krb5-authz2.conf.in Makefile
219         $(do_subst) < $(srcdir)/krb5-authz2.conf.in > krb5-authz2.conf.tmp && \
220         mv krb5-authz2.conf.tmp krb5-authz2.conf
221
222 krb5-canon.conf: krb5-canon.conf.in Makefile
223         $(do_subst) \
224            -e 's,[@]WEAK[@],false,g' \
225            -e 's,[@]dk[@],,g' \
226            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5-canon.conf.in > krb5-canon.conf.tmp && \
227         mv krb5-canon.conf.tmp krb5-canon.conf
228
229 krb5-canon2.conf: krb5-canon2.conf.in Makefile
230         $(do_subst) \
231            -e 's,[@]WEAK[@],false,g' \
232            -e 's,[@]dk[@],,g' \
233            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5-canon2.conf.in > krb5-canon2.conf.tmp && \
234         mv krb5-canon2.conf.tmp krb5-canon2.conf
235
236 krb5-hdb-mitdb.conf: krb5-hdb-mitdb.conf.in Makefile
237         $(do_subst) \
238            -e 's,[@]WEAK[@],false,g' \
239            -e 's,[@]dk[@],,g' \
240            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5-hdb-mitdb.conf.in > krb5-hdb-mitdb.conf.tmp && \
241         mv krb5-hdb-mitdb.conf.tmp krb5-hdb-mitdb.conf
242
243 krb5-weak.conf: krb5.conf.in Makefile
244         $(do_subst) \
245            -e 's,[@]WEAK[@],true,g' \
246            -e 's,[@]dk[@],default_keys = aes256-cts-hmac-sha1-96:pw-salt arcfour-hmac-md5:pw-salt des3-cbc-sha1:pw-salt des:pw-salt,g' \
247            -e 's,[@]messages[@],messages,g' \
248            -e 's,[@]signalsocket[@],signal,g' \
249            -e 's,[@]ipropstats[@],iprop-stats,g' \
250            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5.conf.in > krb5-weak.conf.tmp && \
251         mv krb5-weak.conf.tmp krb5-weak.conf
252
253 krb5-slave.conf: krb5.conf.in Makefile
254         $(do_subst) \
255            -e 's,[@]WEAK[@],true,g' \
256            -e 's,[@]dk[@],,g' \
257            -e 's,[@]messages[@],messages,g' \
258            -e 's,[@]signalsocket[@],signal2,g' \
259            -e 's,[@]ipropstats[@],iprop-stats,g' \
260            -e 's,[@]kdc[@],.slave,g' < $(srcdir)/krb5.conf.in > krb5-slave.conf.tmp && \
261         mv krb5-slave.conf.tmp krb5-slave.conf
262
263 krb5-master2.conf: krb5.conf.in Makefile
264         $(do_subst) \
265            -e 's,[@]WEAK[@],true,g' \
266            -e 's,[@]dk[@],,g' \
267            -e 's,[@]messages[@],messages2,g' \
268            -e 's,[@]signalsocket[@],signal2,g' \
269            -e 's,[@]ipropstats[@],iprop-stats2,g' \
270            -e 's,[@]kdc[@],.slave,g' < $(srcdir)/krb5.conf.in > krb5-master2.conf.tmp && \
271         mv krb5-master2.conf.tmp krb5-master2.conf
272
273 krb5-slave2.conf: krb5.conf.in Makefile
274         $(do_subst) \
275            -e 's,[@]WEAK[@],true,g' \
276            -e 's,[@]dk[@],,g' \
277            -e 's,[@]messages[@],messages2,g' \
278            -e 's,[@]signalsocket[@],signal3,g' \
279            -e 's,[@]ipropstats[@],iprop-stats2,g' \
280            -e 's,[@]kdc[@],.slave2,g' < $(srcdir)/krb5.conf.in > krb5-slave2.conf.tmp && \
281         mv krb5-slave2.conf.tmp krb5-slave2.conf
282
283 krb5-pkinit.conf: krb5-pkinit.conf.in Makefile
284         $(do_subst) -e 's,[@]w2k[@],no,g' < $(srcdir)/krb5-pkinit.conf.in > krb5-pkinit.conf.tmp && \
285         mv krb5-pkinit.conf.tmp krb5-pkinit.conf
286
287 krb5-pkinit2.conf : pkinit_ticket_max_life_from_cert = 30d
288
289 krb5-pkinit2.conf: krb5-pkinit.conf.in Makefile
290         $(do_subst) -e 's,[@]w2k[@],no,g' < $(srcdir)/krb5-pkinit.conf.in > krb5-pkinit2.conf.tmp && \
291         mv krb5-pkinit2.conf.tmp krb5-pkinit2.conf
292
293 krb5-bx509.conf: krb5-bx509.conf.in Makefile
294         $(do_subst) -e 's,[@]w2k[@],no,g' < $(srcdir)/krb5-bx509.conf.in > krb5-bx509.conf.tmp && \
295         mv krb5-bx509.conf.tmp krb5-bx509.conf
296
297 krb5-httpkadmind.conf: krb5-httpkadmind.conf.in Makefile
298         $(do_subst) -e 's,[@]w2k[@],no,g' < $(srcdir)/krb5-httpkadmind.conf.in > krb5-httpkadmind.conf.tmp && \
299         mv krb5-httpkadmind.conf.tmp krb5-httpkadmind.conf
300
301 krb5-pkinit-win.conf: krb5-pkinit.conf.in Makefile
302         $(do_subst) -e 's,[@]w2k[@],yes,g' < $(srcdir)/krb5-pkinit.conf.in > krb5-pkinit-win.conf.tmp && \
303         mv krb5-pkinit-win.conf.tmp krb5-pkinit-win.conf
304
305 clean: clean-am
306         rm -rf cc_dir simple_csr_authz
307
308 CLEANFILES= \
309         $(TESTS) \
310         *.crt \
311         *.der \
312         *.log \
313         *.pem \
314         *.pid \
315         *.tmp \
316         acache.krb5 \
317         barpassword \
318         ca.crt \
319         cache.krb5 \
320         cache2.krb5 \
321         cdigest-reply \
322         client-cache \
323         curlheaders \
324         current-db* \
325         current.log* \
326         digest-reply \
327         extracted_config \
328         extracted_keytab* \
329         foopassword \
330         foopassword.rkpty \
331         iprop-stats \
332         iprop-stats2 \
333         iprop.keytab \
334         ipropd.dumpfile \
335         kdc-tester4.json \
336         krb5-authz.conf \
337         krb5-authz2.conf \
338         krb5-canon.conf \
339         krb5-canon2.conf \
340         krb5-cc.conf \
341         krb5-cccol.conf \
342         krb5-hdb-mitdb.conf \
343         krb5-master2.conf \
344         krb5-pkinit-win.conf \
345         krb5-pkinit.conf \
346         krb5-pkinit2.conf \
347         krb5-bx509.conf \
348         krb5-httpkadmind.conf \
349         krb5-slave2.conf \
350         krb5-slave.conf \
351         krb5-weak.conf \
352         krb5.conf \
353         krb5.conf.keys \
354         kt \
355         leaks-log \
356         localname \
357         malloc-log \
358         malloc-log-master \
359         malloc-log-slave \
360         messages.log2 \
361         negotiate-token \
362         notfoopassword \
363         o2cache.krb5 \
364         o2digest-reply \
365         ocache.krb5 \
366         out-log \
367         req \
368         response-headers \
369         s2digest-reply \
370         sdb \
371         sdigest-init \
372         sdigest-reply \
373         server.keytab \
374         signal \
375         signal2 \
376         signal3 \
377         tempfile \
378         test-rc-file.rc \
379         ukt \
380         uuserver.log
381
382 EXTRA_DIST = \
383         NTMakefile \
384         an2ln-db.txt \
385         check-authz.in \
386         check-canon.in \
387         check-cc.in \
388         check-delegation.in \
389         check-des.in \
390         check-digest.in \
391         check-fast.in \
392         check-iprop.in \
393         check-kadmin.in \
394         check-kinit.in \
395         check-hdb-mitdb.in \
396         check-kdc.in \
397         check-kdc-weak.in \
398         check-keys.in \
399         check-kpasswdd.in \
400         check-pkinit.in \
401         check-bx509.in \
402         check-httpkadmind.in \
403         check-referral.in \
404         check-tester.in \
405         check-uu.in \
406         donotexists.txt \
407         hdb-mitdb \
408         hdb-mitdb.kadm5 \
409         hdb-mitdb.mkey \
410         heimdal.acl \
411         iprop-acl \
412         kdc-tester1.json \
413         kdc-tester2.json \
414         kdc-tester3.json \
415         kdc-tester4.json.in \
416         krb5-pkinit.conf.in \
417         krb5-bx509.conf.in \
418         krb5-httpkadmind.conf.in \
419         krb5.conf.in \
420         krb5-authz.conf.in \
421         krb5-authz2.conf.in \
422         krb5-canon.conf.in \
423         krb5-canon2.conf.in \
424         krb5-hdb-mitdb.conf.in \
425         krb5.conf.keys.in \
426         k5login/foo \
427         ntlm-user-file.txt \
428         leaks-kill.sh \
429         pki-mapping \
430         uuserver.txt \
431         wait-kdc.sh