Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Barchiesi
OpenLDAP
Commits
820b5b64
Commit
820b5b64
authored
21 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Add sizelimit checks (ITS#2888)
parent
54453690
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/test011-glue-slapadd
+20
-2
20 additions, 2 deletions
tests/scripts/test011-glue-slapadd
with
20 additions
and
2 deletions
tests/scripts/test011-glue-slapadd
+
20
−
2
View file @
820b5b64
...
...
@@ -47,8 +47,6 @@ for i in 0 1 2 3 4 5; do
sleep
5
done
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
if
test
$RC
!=
0
;
then
echo
"ldapsearch failed (
$RC
)!"
exit
$RC
...
...
@@ -65,8 +63,28 @@ if test $? != 0 ; then
echo
"comparison failed - database was not created correctly"
echo
$SEARCHFLT
$LDIFFLT
$DIFF
$SEARCHFLT
$LDIFFLT
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
1
fi
echo
"Testing sizelimit..."
$LDAPSEARCH
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-s
one
-z
2
>
$SEARCHOUT
2>&1
RC
=
$?
if
test
$RC
=
0
;
then
echo
"sizelimit not detected at end of search."
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
1
fi
$LDAPSEARCH
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-z
9
objectclass
=
OpenLDAPPerson
>
$SEARCHOUT
2>&1
RC
=
$?
if
test
$RC
=
0
;
then
echo
"sizelimit not detected at middle of search."
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
1
fi
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
echo
">>>>> Test succeeded"
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment