if [ x"$WITH_SASL" = x"yes" -a x"$USE_SASL" != x"no" ] ; then
SASL="sasl"
if [ x"$USE_SASL" = x"yes" ] ; then
- USE_SASL=DIGEST-MD5
+ USE_SASL=SCRAM-SHA-256
fi
SASL_MECH="\"saslmech=$USE_SASL\""
else
exit 0
fi
if test $USE_SASL = "yes" ; then
- MECH="DIGEST-MD5"
+ MECH="SCRAM-SHA-256"
else
MECH="$USE_SASL"
fi
echo "### If available, and explicitly requested, it can use SASL bind;"
echo "### note that SASL must be properly set up, and the requested"
echo "### mechanism must be available. Define SLAPD_USE_SASL={yes|<mech>},"
-echo "### with \"yes\" defaulting to DIGEST-MD5 to enable SASL authc[/authz]."
+echo "### with \"yes\" defaulting to SCRAM-SHA-256 to enable SASL authc[/authz]."
if test $BACKLDAP = "ldapno" ; then
echo "LDAP backend not available, test skipped"
if test $WITH_SASL = "yes" ; then
if test $USE_SASL != "no" ; then
if test $USE_SASL = "yes" ; then
- MECH="DIGEST-MD5"
+ MECH="SCRAM-SHA-256"
else
MECH="$USE_SASL"
fi
echo "### If available, and explicitly requested, it can use SASL bind;"
echo "### note that SASL must be properly set up, and the requested"
echo "### mechanism must be available. Define SLAPD_USE_SASL={yes|<mech>},"
-echo "### with \"yes\" defaulting to DIGEST-MD5 to enable SASL authc[/authz]."
+echo "### with \"yes\" defaulting to SCRAM-SHA-256 to enable SASL authc[/authz]."
if test $BACKLDAP = "ldapno" ; then
echo "LDAP backend not available, test skipped"
if test $WITH_SASL = "yes" ; then
if test $USE_SASL != "no" ; then
if test $USE_SASL = "yes" ; then
- MECH="DIGEST-MD5"
+ MECH="SCRAM-SHA-256"
else
MECH="$USE_SASL"
fi
exit 0
fi
+case "$USE_SASL" in
+ ""|no|yes)
+ MECH="SCRAM-SHA-256";;
+ *)
+ MECH="$USE_SASL"
+esac
+echo "Using SASL authc[/authz] with mech=$MECH"
+
CONFDIR=$TESTDIR/slapd.d
-MECH=DIGEST-MD5
mkdir -p $TESTDIR $CONFDIR $DBDIR1