mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
ITS#6035 Skip test076 if chosen SASL mech not supported
This commit is contained in:
parent
34918d4e35
commit
df46c07a92
1 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue