Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
258a3c15
Commit
258a3c15
authored
Oct 03, 2018
by
Quanah Gibson-Mount
Browse files
Update test044 to catch ITS#8923
parent
f2d86bec
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/scripts/defines.sh
View file @
258a3c15
...
...
@@ -261,6 +261,7 @@ UPDATEDN="cn=Replica,$BASEDN"
PASSWD
=
secret
BABSDN
=
"cn=Barbara Jensen,ou=Information Technology DivisioN,ou=People,
$BASEDN
"
BJORNSDN
=
"cn=Bjorn Jensen,ou=Information Technology DivisioN,ou=People,
$BASEDN
"
BADBJORNSDN
=
"cn=Bjorn JensenNotReally,ou=Information Technology DivisioN,ou=People,
$BASEDN
"
JAJDN
=
"cn=James A Jones 1,ou=Alumni Association,ou=People,
$BASEDN
"
JOHNDDN
=
"cn=John Doe,ou=Information Technology Division,ou=People,
$BASEDN
"
MELLIOTDN
=
"cn=Mark Elliot,ou=Alumni Association,ou=People,
$BASEDN
"
...
...
tests/scripts/test044-dynlist
View file @
258a3c15
...
...
@@ -468,6 +468,35 @@ case $RC in
esac
echo
""
>>
$SEARCHOUT
CMPDN
=
"
$BADBJORNSDN
"
echo
"Testing list compare (should return FALSE)..."
echo
"# Testing list compare... (should return FALSE)"
>>
$SEARCHOUT
$LDAPCOMPARE
-h
$LOCALHOST
-p
$PORT1
\
"cn=Dynamic List of Members,
$LISTDN
"
"member:
$CMPDN
"
\
>>
$SEARCHOUT
2>&1
RC
=
$?
case
$RC
in
5
)
echo
"ldapcompare returned FALSE (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
6
)
echo
"ldapcompare returned TRUE (
$RC
)"
;;
0
)
echo
"ldapcompare returned success (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
-1
;;
*
)
echo
"ldapcompare failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
;;
esac
echo
""
>>
$SEARCHOUT
echo
"Testing list compare (should return FALSE)..."
echo
"# Testing list compare (should return FALSE)..."
>>
$SEARCHOUT
$LDAPCOMPARE
-h
$LOCALHOST
-p
$PORT1
\
...
...
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