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
...@@ -32,10 +32,8 @@ PATH=${PATH}:/usr/lib/heimdal-servers:/usr/sbin:/usr/local/sbin ...@@ -32,10 +32,8 @@ PATH=${PATH}:/usr/lib/heimdal-servers:/usr/sbin:/usr/local/sbin
echo "Trying Heimdal KDC..." echo "Trying Heimdal KDC..."
kdc --version 2>&1 | grep Heimdal > $KDCLOG 2>&1 command -v kdc >/dev/null 2>&1
RC=$? if test $? = 0 ; then
if test $RC = 0 ; then
kstash --random-key > $KDCLOG 2>&1 kstash --random-key > $KDCLOG 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
...@@ -83,6 +81,12 @@ if test $RC = 0 ; then ...@@ -83,6 +81,12 @@ if test $RC = 0 ; then
else else
echo "Trying MIT KDC..." 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 kdb5_util create -r $KRB5REALM -s -P password > $KDCLOG 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 ; then
......
Supports Markdown
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