Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-keys and --disable-afs-string-to-key #235

Closed
bjsa opened this issue Jan 3, 2017 · 0 comments
Closed

check-keys and --disable-afs-string-to-key #235

bjsa opened this issue Jan 3, 2017 · 0 comments

Comments

@bjsa
Copy link

bjsa commented Jan 3, 2017

test/kdc/check-keys fails if heimdal is configured with --disable-afs-string-to-key.
quick workaround:

--- check-keys.in.orig	2017-01-03 16:18:36.427903622 +0100
+++ check-keys.in	2017-01-03 16:21:46.874400851 +0100
@@ -91,6 +91,8 @@
 	${sedvars} < ${CIN} > ${COUT}
 ${kadmin} cpw -p foo ${principal} || exit 1
 
+if ( grep -q "define ENABLE_AFS_STRING_TO_KEY" $top_builddir/include/config.h ) ; then
+
 sed -e 's/@keys@/des-cbc-crc:afs3-salt:test.h5l.se/' \
 	${sedvars} < ${CIN} > ${COUT}
 ${kadmin} cpw -p foo ${principal} || exit 1
@@ -99,4 +101,6 @@
 	${sedvars} < ${CIN} > ${COUT}
 ${kadmin} cpw -p foo ${principal} || exit 1
 
+fi
+
 exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants