test weak enctypes too

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24610 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-02-04 22:09:31 +00:00
parent 7f67735b69
commit 5106f5f173
4 changed files with 26 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ include $(top_srcdir)/Makefile.am.common
noinst_DATA = \
krb5.conf \
krb5-no-weak.conf \
krb5-weak.conf \
krb5-pkinit.conf \
krb5-pkinit-win.conf \
krb5-slave.conf
@@ -18,6 +18,7 @@ SCRIPT_TESTS = \
check-digest \
check-kadmin \
check-kdc \
check-kdc-weak \
check-keys \
check-kpasswdd \
check-pkinit \
@@ -57,16 +58,25 @@ check-delegation: check-delegation.in Makefile
chmod +x check-delegation.tmp
mv check-delegation.tmp check-delegation
check-des: check-des.in Makefile krb5-no-weak.conf
check-des: check-des.in Makefile krb5.conf
$(do_subst) < $(srcdir)/check-des.in > check-des.tmp
chmod +x check-des.tmp
mv check-des.tmp check-des
check-kdc: check-kdc.in Makefile
$(do_subst) < $(srcdir)/check-kdc.in > check-kdc.tmp
$(do_subst) \
-e 's,[@]KDCCONF[@],krb5.conf,g' \
< $(srcdir)/check-kdc.in > check-kdc.tmp
chmod +x check-kdc.tmp
mv check-kdc.tmp check-kdc
check-kdc-weak: check-kdc.in Makefile
$(do_subst) \
-e 's,[@]KDCCONF[@],krb5-weak.conf,g' \
< $(srcdir)/check-kdc.in > check-kdc-weak.tmp
chmod +x check-kdc-weak.tmp
mv check-kdc-weak.tmp check-kdc-weak
check-keys: check-keys.in Makefile
$(do_subst) < $(srcdir)/check-keys.in > check-keys.tmp
chmod +x check-keys.tmp
@@ -109,19 +119,22 @@ check-kpasswdd: check-kpasswdd.in Makefile
krb5.conf: krb5.conf.in Makefile
$(do_subst) \
-e 's,[@]WEAK[@],true,g' \
-e 's,[@]WEAK[@],false,g' \
-e 's,[@]dk[@],,g' \
-e 's,[@]kdc[@],,g' < $(srcdir)/krb5.conf.in > krb5.conf.tmp
mv krb5.conf.tmp krb5.conf
krb5-no-weak.conf: krb5.conf.in Makefile
krb5-weak.conf: krb5.conf.in Makefile
$(do_subst) \
-e 's,[@]WEAK[@],false,g' \
-e 's,[@]kdc[@],,g' < $(srcdir)/krb5.conf.in > krb5-no-weak.conf.tmp
mv krb5-no-weak.conf.tmp krb5-no-weak.conf
-e 's,[@]WEAK[@],true,g' \
-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' \
-e 's,[@]kdc[@],,g' < $(srcdir)/krb5.conf.in > krb5-weak.conf.tmp
mv krb5-weak.conf.tmp krb5-weak.conf
krb5-slave.conf: krb5.conf.in Makefile
$(do_subst) \
-e 's,[@]WEAK[@],true,g' \
-e 's,[@]dk[@],,g' \
-e 's,[@]kdc[@],.slave,g' < $(srcdir)/krb5.conf.in > krb5-slave.conf.tmp
mv krb5-slave.conf.tmp krb5-slave.conf
@@ -147,7 +160,7 @@ CLEANFILES= \
digest-reply \
foopassword \
krb5.conf \
krb5-no-weak.conf \
krb5-weak.conf \
krb5.conf.keys \
krb5-cc.conf \
krb5-slave.conf \
@@ -184,6 +197,7 @@ EXTRA_DIST = \
check-iprop.in \
check-kadmin.in \
check-kdc.in \
check-kdc-weak.in \
check-keys.in \
check-kpasswdd.in \
check-pkinit.in \

View File

@@ -60,7 +60,7 @@ klist="${TESTS_ENVIRONMENT} ../../kuser/klist -c $cache"
kgetcred="${TESTS_ENVIRONMENT} ../../kuser/kgetcred -c $cache"
kdestroy="${TESTS_ENVIRONMENT} ../../kuser/kdestroy -c $cache --no-unlog"
KRB5_CONFIG="${objdir}/krb5-no-weak.conf"
KRB5_CONFIG="${objdir}/krb5.conf"
export KRB5_CONFIG
rm -f ${keytabfile}

View File

@@ -79,7 +79,7 @@ kimpersonate="${TESTS_ENVIRONMENT} ../../kuser/kimpersonate -k ${keytab} --ccach
test_renew="${TESTS_ENVIRONMENT} ../../lib/krb5/test_renew"
test_ap_req="${TESTS_ENVIRONMENT} ../../lib/krb5/test_ap-req"
KRB5_CONFIG="${objdir}/krb5.conf"
KRB5_CONFIG="${objdir}/@KDCCONF@"
export KRB5_CONFIG
rm -f ${keytabfile}

View File

@@ -68,6 +68,7 @@
[kadmin]
save-password = true
@dk@
[capaths]
TEST.H5L.SE = {