tests: Use here-doc kadmin in Java test
This commit is contained in:
@@ -78,16 +78,13 @@ javac -d "${objdir}" "${srcdir}/../../appl/test/jgssapi_server.java" || \
|
|||||||
echo foo > ${objdir}/foopassword
|
echo foo > ${objdir}/foopassword
|
||||||
|
|
||||||
echo Creating database
|
echo Creating database
|
||||||
${kadmin} \
|
${kadmin} <<EOF || exit 1
|
||||||
init \
|
init --realm-max-ticket-life=1day --realm-max-renewable-life=1month ${R}
|
||||||
--realm-max-ticket-life=1day \
|
add -p foo --use-defaults lha@${R}
|
||||||
--realm-max-renewable-life=1month \
|
modify --attributes=+requires-pre-auth lha@${R}
|
||||||
${R} || exit 1
|
add -p kaka --use-defaults ${server}@${R}
|
||||||
|
ext -k ${keytab} ${server}@${R}
|
||||||
${kadmin} add -p foo --use-defaults lha@${R} || exit 1
|
EOF
|
||||||
${kadmin} modify --attributes=+requires-pre-auth lha@${R} || exit 1
|
|
||||||
${kadmin} add -p kaka --use-defaults ${server}@${R} || exit 1
|
|
||||||
${kadmin} ext -k ${keytab} ${server}@${R} || exit 1
|
|
||||||
|
|
||||||
echo Starting kdc
|
echo Starting kdc
|
||||||
${kdc} --detach --testing || { echo "kdc failed to start"; cat messages.log; exit 1; }
|
${kdc} --detach --testing || { echo "kdc failed to start"; cat messages.log; exit 1; }
|
||||||
|
Reference in New Issue
Block a user