Commit 0578202a authored by Ryan Tandy's avatar Ryan Tandy Committed by Quanah Gibson-Mount
Browse files

Skip MIT setup if krb5kdc not installed

parent 4a50fa74
Pipeline #287 passed with stage
in 32 minutes and 13 seconds
......@@ -32,10 +32,8 @@ PATH=${PATH}:/usr/lib/heimdal-servers:/usr/sbin:/usr/local/sbin
echo "Trying Heimdal KDC..."
kdc --version 2>&1 | grep Heimdal > $KDCLOG 2>&1
RC=$?
if test $RC = 0 ; then
command -v kdc >/dev/null 2>&1
if test $? = 0 ; then
kstash --random-key > $KDCLOG 2>&1
RC=$?
if test $RC != 0 ; then
......@@ -83,6 +81,12 @@ if test $RC = 0 ; then
else
echo "Trying MIT KDC..."
command -v krb5kdc >/dev/null 2>&1
if test $? != 0; then
echo "No KDC available, skipping GSSAPI tests"
exit 0
fi
kdb5_util create -r $KRB5REALM -s -P password > $KDCLOG 2>&1
RC=$?
if test $RC != 0 ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment