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