Commit df46c07a authored by Ryan Tandy's avatar Ryan Tandy Committed by Ryan Tandy
Browse files

ITS#6035 Skip test076 if chosen SASL mech not supported

parent 34918d4e
Pipeline #262 passed with stage
in 51 minutes and 53 seconds
......@@ -61,6 +61,24 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Checking whether $MECH is supported..."
$LDAPSEARCH -s base -b "" -H $URI1 \
'objectClass=*' supportedSASLMechanisms > $SEARCHOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
grep "supportedSASLMechanisms: $MECH" $SEARCHOUT > $TESTOUT
RC=$?
if test $RC != 0 ; then
echo "SASL mechanism $MECH is not available, test skipped"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 0
fi
echo "Adding schema and database..."
$LDAPADD -H $URI1 -D cn=config -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
include: file://$ABS_SCHEMADIR/core.ldif
......
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