Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
df46c07a
Commit
df46c07a
authored
Apr 25, 2020
by
Ryan Tandy
Committed by
Ryan Tandy
Apr 26, 2020
Browse files
ITS#6035 Skip test076 if chosen SASL mech not supported
parent
34918d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/scripts/test076-authid-rewrite
View file @
df46c07a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment