mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-28 17:47:33 -05:00
Skip MIT setup if krb5kdc not installed
This commit is contained in:
parent
4a50fa745d
commit
0578202a26
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue