1*7f2fe78bSCy Schubertmydir=tests 2*7f2fe78bSCy SchubertBUILDTOP=$(REL).. 3*7f2fe78bSCy SchubertSUBDIRS = asn.1 create hammer verify gssapi shlib gss-threads misc threads \ 4*7f2fe78bSCy Schubert softpkcs11 5*7f2fe78bSCy Schubert 6*7f2fe78bSCy SchubertRUN_DB_TEST = $(RUN_SETUP) KRB5_KDC_PROFILE=kdc.conf KRB5_CONFIG=krb5.conf \ 7*7f2fe78bSCy Schubert GSS_MECH_CONFIG=mech.conf LC_ALL=C $(VALGRIND) 8*7f2fe78bSCy Schubert 9*7f2fe78bSCy SchubertOBJS= adata.o conccache.o etinfo.o forward.o gcred.o hist.o hooks.o hrealm.o \ 10*7f2fe78bSCy Schubert icinterleave.o icred.o kdbtest.o localauth.o plugorder.o rdreq.o \ 11*7f2fe78bSCy Schubert replay.o responder.o s2p.o s4u2self.o s4u2proxy.o t_inetd.o \ 12*7f2fe78bSCy Schubert unlockiter.o 13*7f2fe78bSCy SchubertEXTRADEPSRCS= adata.c conccache.c etinfo.c forward.c gcred.c hist.c hooks.c \ 14*7f2fe78bSCy Schubert hrealm.c icinterleave.c icred.c kdbtest.c localauth.c plugorder.c \ 15*7f2fe78bSCy Schubert rdreq.c replay.c responder.c s2p.c s4u2self.c s4u2proxy.c t_inetd.c \ 16*7f2fe78bSCy Schubert unlockiter.c 17*7f2fe78bSCy Schubert 18*7f2fe78bSCy SchubertTEST_DB = ./testdb 19*7f2fe78bSCy SchubertTEST_REALM = FOO.TEST.REALM 20*7f2fe78bSCy SchubertTEST_MKEY = footes 21*7f2fe78bSCy SchubertTEST_NUM = 65 22*7f2fe78bSCy SchubertTEST_DEPTH = 5 23*7f2fe78bSCy SchubertTEST_PREFIX = "foo bar" 24*7f2fe78bSCy Schubert 25*7f2fe78bSCy SchubertKADMIN_OPTS= -d $(TEST_DB) -r $(TEST_REALM) -P $(TEST_MKEY) 26*7f2fe78bSCy SchubertKTEST_OPTS= $(KADMIN_OPTS) -p $(TEST_PREFIX) -n $(TEST_NUM) -D $(TEST_DEPTH) 27*7f2fe78bSCy Schubert 28*7f2fe78bSCy Schubertadata: adata.o $(KRB5_BASE_DEPLIBS) 29*7f2fe78bSCy Schubert $(CC_LINK) -o $@ adata.o $(KRB5_BASE_LIBS) 30*7f2fe78bSCy Schubert 31*7f2fe78bSCy Schubertconccache: conccache.o $(KRB5_BASE_DEPLIBS) 32*7f2fe78bSCy Schubert $(CC_LINK) -o $@ conccache.o $(KRB5_BASE_LIBS) 33*7f2fe78bSCy Schubert 34*7f2fe78bSCy Schubertetinfo: etinfo.o $(KRB5_BASE_DEPLIBS) 35*7f2fe78bSCy Schubert $(CC_LINK) -o $@ etinfo.o $(KRB5_BASE_LIBS) 36*7f2fe78bSCy Schubert 37*7f2fe78bSCy Schubertforward: forward.o $(KRB5_BASE_DEPLIBS) 38*7f2fe78bSCy Schubert $(CC_LINK) -o $@ forward.o $(KRB5_BASE_LIBS) 39*7f2fe78bSCy Schubert 40*7f2fe78bSCy Schubertgcred: gcred.o $(KRB5_BASE_DEPLIBS) 41*7f2fe78bSCy Schubert $(CC_LINK) -o $@ gcred.o $(KRB5_BASE_LIBS) 42*7f2fe78bSCy Schubert 43*7f2fe78bSCy Schuberthist: hist.o $(KDB5_DEPLIBS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) 44*7f2fe78bSCy Schubert $(CC_LINK) -o $@ hist.o $(KDB5_LIBS) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS) 45*7f2fe78bSCy Schubert 46*7f2fe78bSCy Schuberthooks: hooks.o $(KRB5_BASE_DEPLIBS) 47*7f2fe78bSCy Schubert $(CC_LINK) -o $@ hooks.o $(KRB5_BASE_LIBS) 48*7f2fe78bSCy Schubert 49*7f2fe78bSCy Schuberthrealm: hrealm.o $(KRB5_BASE_DEPLIBS) 50*7f2fe78bSCy Schubert $(CC_LINK) -o $@ hrealm.o $(KRB5_BASE_LIBS) 51*7f2fe78bSCy Schubert 52*7f2fe78bSCy Schuberticinterleave: icinterleave.o $(KRB5_BASE_DEPLIBS) 53*7f2fe78bSCy Schubert $(CC_LINK) -o $@ icinterleave.o $(KRB5_BASE_LIBS) 54*7f2fe78bSCy Schubert 55*7f2fe78bSCy Schuberticred: icred.o $(KRB5_BASE_DEPLIBS) 56*7f2fe78bSCy Schubert $(CC_LINK) -o $@ icred.o $(KRB5_BASE_LIBS) 57*7f2fe78bSCy Schubert 58*7f2fe78bSCy Schubertkdbtest: kdbtest.o $(KDB5_DEPLIBS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) 59*7f2fe78bSCy Schubert $(CC_LINK) -o $@ kdbtest.o $(KDB5_LIBS) $(KADMSRV_LIBS) \ 60*7f2fe78bSCy Schubert $(KRB5_BASE_LIBS) 61*7f2fe78bSCy Schubert 62*7f2fe78bSCy Schubertlocalauth: localauth.o $(KRB5_BASE_DEPLIBS) 63*7f2fe78bSCy Schubert $(CC_LINK) -o $@ localauth.o $(KRB5_BASE_LIBS) 64*7f2fe78bSCy Schubert 65*7f2fe78bSCy Schubertplugorder: plugorder.o $(KRB5_BASE_DEPLIBS) 66*7f2fe78bSCy Schubert $(CC_LINK) -o $@ plugorder.o $(KRB5_BASE_LIBS) 67*7f2fe78bSCy Schubert 68*7f2fe78bSCy Schubertrdreq: rdreq.o $(KRB5_BASE_DEPLIBS) 69*7f2fe78bSCy Schubert $(CC_LINK) -o $@ rdreq.o $(KRB5_BASE_LIBS) 70*7f2fe78bSCy Schubert 71*7f2fe78bSCy Schubertreplay: replay.o $(KRB5_BASE_DEPLIBS) 72*7f2fe78bSCy Schubert $(CC_LINK) -o $@ replay.o $(KRB5_BASE_LIBS) 73*7f2fe78bSCy Schubert 74*7f2fe78bSCy Schubertresponder: responder.o $(KRB5_BASE_DEPLIBS) 75*7f2fe78bSCy Schubert $(CC_LINK) -o $@ responder.o $(KRB5_BASE_LIBS) 76*7f2fe78bSCy Schubert 77*7f2fe78bSCy Schuberts2p: s2p.o $(KRB5_BASE_DEPLIBS) 78*7f2fe78bSCy Schubert $(CC_LINK) -o $@ s2p.o $(KRB5_BASE_LIBS) 79*7f2fe78bSCy Schubert 80*7f2fe78bSCy Schuberts4u2self: s4u2self.o $(KRB5_BASE_DEPLIBS) 81*7f2fe78bSCy Schubert $(CC_LINK) -o $@ s4u2self.o $(KRB5_BASE_LIBS) 82*7f2fe78bSCy Schubert 83*7f2fe78bSCy Schuberts4u2proxy: s4u2proxy.o $(KRB5_BASE_DEPLIBS) 84*7f2fe78bSCy Schubert $(CC_LINK) -o $@ s4u2proxy.o $(KRB5_BASE_LIBS) 85*7f2fe78bSCy Schubert 86*7f2fe78bSCy Schubertt_inetd: t_inetd.o $(KRB5_BASE_DEPLIBS) 87*7f2fe78bSCy Schubert $(CC_LINK) -o $@ t_inetd.o $(LIBS) $(KRB5_BASE_LIBS) 88*7f2fe78bSCy Schubert 89*7f2fe78bSCy Schubertunlockiter: unlockiter.o $(KDB5_DEPLIBS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) 90*7f2fe78bSCy Schubert $(CC_LINK) -o $@ unlockiter.o $(KDB5_LIBS) $(KADMSRV_LIBS) \ 91*7f2fe78bSCy Schubert $(KRB5_BASE_LIBS) 92*7f2fe78bSCy Schubert 93*7f2fe78bSCy Schubertall-unix: t_inetd 94*7f2fe78bSCy Schubert 95*7f2fe78bSCy Schubertcheck-unix: kdb_check 96*7f2fe78bSCy Schubert 97*7f2fe78bSCy Schubertkdc.conf: Makefile 98*7f2fe78bSCy Schubert rm -rf kdc.conf 99*7f2fe78bSCy Schubert @echo "[realms]" > kdc.conf 100*7f2fe78bSCy Schubert @echo "$(TEST_REALM) = {" >> kdc.conf 101*7f2fe78bSCy Schubert @echo " key_stash_file = `pwd`/stash_file" >> kdc.conf 102*7f2fe78bSCy Schubert @echo "}" >> kdc.conf 103*7f2fe78bSCy Schubert 104*7f2fe78bSCy Schubertkrb5.conf: Makefile 105*7f2fe78bSCy Schubert cat $(top_srcdir)/config-files/krb5.conf > krb5.new 106*7f2fe78bSCy Schubert echo "[dbmodules]" >> krb5.new 107*7f2fe78bSCy Schubert echo " db_module_dir = `pwd`/../plugins/kdb" >> krb5.new 108*7f2fe78bSCy Schubert mv krb5.new krb5.conf 109*7f2fe78bSCy Schubert 110*7f2fe78bSCy Schubertkdb_check: kdc.conf krb5.conf 111*7f2fe78bSCy Schubert $(RM) $(TEST_DB)* 112*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create -W 113*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../tests/create/kdb5_mkdums $(KTEST_OPTS) 114*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../tests/verify/kdb5_verify $(KTEST_OPTS) 115*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump $(TEST_DB).dump 116*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) destroy -f 117*7f2fe78bSCy Schubert @echo "====> NOTE!" 118*7f2fe78bSCy Schubert @echo "The following 'create' command is needed due to a change" 119*7f2fe78bSCy Schubert @echo "in functionality caused by DAL integration. See ticket 3973." 120*7f2fe78bSCy Schubert @echo ==== 121*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create -W 122*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) load $(TEST_DB).dump 123*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../tests/verify/kdb5_verify $(KTEST_OPTS) 124*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump $(TEST_DB).dump2 125*7f2fe78bSCy Schubert sort $(TEST_DB).dump > $(TEST_DB).sort 126*7f2fe78bSCy Schubert sort $(TEST_DB).dump2 > $(TEST_DB).sort2 127*7f2fe78bSCy Schubert cmp $(TEST_DB).sort $(TEST_DB).sort2 128*7f2fe78bSCy Schubert $(RUN_DB_TEST) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) destroy -f 129*7f2fe78bSCy Schubert $(RM) $(TEST_DB)* stash_file 130*7f2fe78bSCy Schubert 131*7f2fe78bSCy Schubertcheck-pytests: adata conccache etinfo forward gcred hist hooks hrealm 132*7f2fe78bSCy Schubertcheck-pytests: icinterleave icred kdbtest localauth plugorder rdreq replay 133*7f2fe78bSCy Schubertcheck-pytests: responder s2p s4u2proxy unlockiter s4u2self 134*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_general.py $(PYTESTFLAGS) 135*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_hooks.py $(PYTESTFLAGS) 136*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_dump.py $(PYTESTFLAGS) 137*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_iprop.py $(PYTESTFLAGS) 138*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kprop.py $(PYTESTFLAGS) 139*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_policy.py $(PYTESTFLAGS) 140*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_changepw.py $(PYTESTFLAGS) 141*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_pkinit.py $(PYTESTFLAGS) 142*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_otp.py $(PYTESTFLAGS) 143*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_spake.py $(PYTESTFLAGS) 144*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_localauth.py $(PYTESTFLAGS) 145*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadm5_hook.py $(PYTESTFLAGS) 146*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadm5_auth.py $(PYTESTFLAGS) 147*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_pwqual.py $(PYTESTFLAGS) 148*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_hostrealm.py $(PYTESTFLAGS) 149*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kdb_locking.py $(PYTESTFLAGS) 150*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_keyrollover.py $(PYTESTFLAGS) 151*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_renew.py $(PYTESTFLAGS) 152*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_renprinc.py $(PYTESTFLAGS) 153*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_ccache.py $(PYTESTFLAGS) 154*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_stringattr.py $(PYTESTFLAGS) 155*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_sesskeynego.py $(PYTESTFLAGS) 156*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_crossrealm.py $(PYTESTFLAGS) 157*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_referral.py $(PYTESTFLAGS) 158*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_skew.py $(PYTESTFLAGS) 159*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_keytab.py $(PYTESTFLAGS) 160*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadmin.py $(PYTESTFLAGS) 161*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadmin_acl.py $(PYTESTFLAGS) 162*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kadmin_parsing.py $(PYTESTFLAGS) 163*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kdb.py $(PYTESTFLAGS) 164*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_keydata.py $(PYTESTFLAGS) 165*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_mkey.py $(PYTESTFLAGS) 166*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_rdreq.py $(PYTESTFLAGS) 167*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_sn2princ.py $(PYTESTFLAGS) $(OFFLINE) 168*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_cve-2012-1014.py $(PYTESTFLAGS) 169*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_cve-2012-1015.py $(PYTESTFLAGS) 170*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_cve-2013-1416.py $(PYTESTFLAGS) 171*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_cve-2013-1417.py $(PYTESTFLAGS) 172*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_cve-2021-36222.py $(PYTESTFLAGS) 173*7f2fe78bSCy Schubert $(RM) au.log 174*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_audit.py $(PYTESTFLAGS) 175*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/jsonwalker.py -d $(srcdir)/au_dict.json \ 176*7f2fe78bSCy Schubert -i au.log 177*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_salt.py $(PYTESTFLAGS) 178*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_etype_info.py $(PYTESTFLAGS) 179*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_bogus_kdc_req.py $(PYTESTFLAGS) 180*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kdc_log.py $(PYTESTFLAGS) 181*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_proxy.py $(PYTESTFLAGS) 182*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_unlockiter.py $(PYTESTFLAGS) 183*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_errmsg.py $(PYTESTFLAGS) 184*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_authdata.py $(PYTESTFLAGS) 185*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_preauth.py $(PYTESTFLAGS) 186*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_princflags.py $(PYTESTFLAGS) 187*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_tabdump.py $(PYTESTFLAGS) 188*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_certauth.py $(PYTESTFLAGS) 189*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_y2038.py $(PYTESTFLAGS) 190*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kdcpolicy.py $(PYTESTFLAGS) 191*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_u2u.py $(PYTESTFLAGS) 192*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_kdcoptions.py $(PYTESTFLAGS) 193*7f2fe78bSCy Schubert $(RUNPYTEST) $(srcdir)/t_replay.py $(PYTESTFLAGS) 194*7f2fe78bSCy Schubert 195*7f2fe78bSCy Schubertclean: 196*7f2fe78bSCy Schubert $(RM) adata conccache etinfo forward gcred hist hooks hrealm 197*7f2fe78bSCy Schubert $(RM) icinterleave icred kdbtest localauth plugorder rdreq replay 198*7f2fe78bSCy Schubert $(RM) responder s2p s4u2proxy s4u2self t_inetd unlockiter 199*7f2fe78bSCy Schubert $(RM) krb5.conf kdc.conf 200*7f2fe78bSCy Schubert $(RM) -rf kdc_realm/sandbox ldap 201*7f2fe78bSCy Schubert $(RM) au.log 202