Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Dimitar Stoychev
OpenLDAP
Commits
5b56d48e
Commit
5b56d48e
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
unambiguate last set of tests
parent
add96290
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/data/slapd-limits.conf
+6
-6
6 additions, 6 deletions
tests/data/slapd-limits.conf
tests/scripts/test025-limits
+66
-18
66 additions, 18 deletions
tests/scripts/test025-limits
with
72 additions
and
24 deletions
tests/data/slapd-limits.conf
+
6
−
6
View file @
5b56d48e
...
...
@@ -45,9 +45,9 @@ limits dn.exact="cn=Soft Limited User,ou=People,o=University of Michigan,c=US" s
limits
dn
.
exact
=
"cn=Hard Limited User,ou=People,o=University of Michigan,c=US"
size
.
soft
=
4
size
.
hard
=
8
limits
dn
.
exact
=
"cn=Unchecked Limited User,ou=People,o=University of Michigan,c=US"
size
.
unchecked
=
4
limits
group
=
"cn=Unchecked Limited Users,ou=Groups,o=University of Michigan,c=US"
size
.
unchecked
=
4
limits
dn
.
regex
=
"^cn=Foo User,ou=[^,]+,o=University of Michigan,c=US$"
size
.
unchecked
=
4
limits
dn
.
onelevel
=
"ou=People,o=University of Michigan,c=US"
size
.
unchecked
=
4
limits
dn
.
children
=
"ou=Groups,o=University of Michigan,c=US"
size
.
unchecked
=
4
limits
dn
.
subtree
=
"ou=Admin,o=University of Michigan,c=US"
size
.
unchecked
=
4
limits
users
size
.
unchecked
=
4
limits
anonymous
size
.
unchecked
=
4
limits
dn
.
regex
=
"^cn=Foo User,ou=[^,]+,o=University of Michigan,c=US$"
size
.
soft
=
6
limits
dn
.
onelevel
=
"ou=People,o=University of Michigan,c=US"
size
.
soft
=
5
limits
dn
.
children
=
"ou=Groups,o=University of Michigan,c=US"
size
.
soft
=
4
limits
dn
.
subtree
=
"ou=Admin,o=University of Michigan,c=US"
size
.
soft
=
3
limits
users
size
.
soft
=
2
limits
anonymous
size
.
soft
=
1
This diff is collapsed.
Click to expand it.
tests/scripts/test025-limits
+
66
−
18
View file @
5b56d48e
...
...
@@ -315,10 +315,18 @@ RC=$?
COUNT
=
`
cat
$SEARCHOUT
|
grep
'^# numEntries:'
|
sed
's;.*\([0-9]\+\)$;\1;'
`
case
$RC
in
0
)
echo
"...success; didn't bump into server-side
unchecked
limit (got
$COUNT
entries)"
echo
"...success; didn't bump into
either requested (
$SIZELIMIT
) or
server-side
size
limit (got
$COUNT
entries)"
;;
11
)
echo
"...bumped into server-side unchecked limit"
4
)
if
test
"x
$COUNT
"
!=
"x"
;
then
if
test
$SIZELIMIT
=
$COUNT
;
then
echo
"...bumped into requested (
$SIZELIMIT
) size limit"
else
echo
"...bumped into server-side size limit (
$COUNT
)"
fi
else
echo
"...bumped into either requested (
$SIZELIMIT
) or server-side size limit"
fi
;;
*
)
echo
"ldapsearch failed (
$RC
)!"
...
...
@@ -335,10 +343,18 @@ RC=$?
COUNT
=
`
cat
$SEARCHOUT
|
grep
'^# numEntries:'
|
sed
's;.*\([0-9]\+\)$;\1;'
`
case
$RC
in
0
)
echo
"...success; didn't bump into server-side
unchecked
limit (got
$COUNT
entries)"
echo
"...success; didn't bump into
either requested (
$SIZELIMIT
) or
server-side
size
limit (got
$COUNT
entries)"
;;
11
)
echo
"...bumped into server-side unchecked limit"
4
)
if
test
"x
$COUNT
"
!=
"x"
;
then
if
test
$SIZELIMIT
=
$COUNT
;
then
echo
"...bumped into requested (
$SIZELIMIT
) size limit"
else
echo
"...bumped into server-side size limit (
$COUNT
)"
fi
else
echo
"...bumped into either requested (
$SIZELIMIT
) or server-side size limit"
fi
;;
*
)
echo
"ldapsearch failed (
$RC
)!"
...
...
@@ -355,10 +371,18 @@ RC=$?
COUNT
=
`
cat
$SEARCHOUT
|
grep
'^# numEntries:'
|
sed
's;.*\([0-9]\+\)$;\1;'
`
case
$RC
in
0
)
echo
"...success; didn't bump into server-side
unchecked
limit (got
$COUNT
entries)"
echo
"...success; didn't bump into
either requested (
$SIZELIMIT
) or
server-side
size
limit (got
$COUNT
entries)"
;;
11
)
echo
"...bumped into server-side unchecked limit"
4
)
if
test
"x
$COUNT
"
!=
"x"
;
then
if
test
$SIZELIMIT
=
$COUNT
;
then
echo
"...bumped into requested (
$SIZELIMIT
) size limit"
else
echo
"...bumped into server-side size limit (
$COUNT
)"
fi
else
echo
"...bumped into either requested (
$SIZELIMIT
) or server-side size limit"
fi
;;
*
)
echo
"ldapsearch failed (
$RC
)!"
...
...
@@ -375,10 +399,18 @@ RC=$?
COUNT
=
`
cat
$SEARCHOUT
|
grep
'^# numEntries:'
|
sed
's;.*\([0-9]\+\)$;\1;'
`
case
$RC
in
0
)
echo
"...success; didn't bump into server-side
unchecked
limit (got
$COUNT
entries)"
echo
"...success; didn't bump into
either requested (
$SIZELIMIT
) or
server-side
size
limit (got
$COUNT
entries)"
;;
11
)
echo
"...bumped into server-side unchecked limit"
4
)
if
test
"x
$COUNT
"
!=
"x"
;
then
if
test
$SIZELIMIT
=
$COUNT
;
then
echo
"...bumped into requested (
$SIZELIMIT
) size limit"
else
echo
"...bumped into server-side size limit (
$COUNT
)"
fi
else
echo
"...bumped into either requested (
$SIZELIMIT
) or server-side size limit"
fi
;;
*
)
echo
"ldapsearch failed (
$RC
)!"
...
...
@@ -395,10 +427,18 @@ RC=$?
COUNT
=
`
cat
$SEARCHOUT
|
grep
'^# numEntries:'
|
sed
's;.*\([0-9]\+\)$;\1;'
`
case
$RC
in
0
)
echo
"...success; didn't bump into server-side
unchecked
limit (got
$COUNT
entries)"
echo
"...success; didn't bump into
either requested (
$SIZELIMIT
) or
server-side
size
limit (got
$COUNT
entries)"
;;
11
)
echo
"...bumped into server-side unchecked limit"
4
)
if
test
"x
$COUNT
"
!=
"x"
;
then
if
test
$SIZELIMIT
=
$COUNT
;
then
echo
"...bumped into requested (
$SIZELIMIT
) size limit"
else
echo
"...bumped into server-side size limit (
$COUNT
)"
fi
else
echo
"...bumped into either requested (
$SIZELIMIT
) or server-side size limit"
fi
;;
*
)
echo
"ldapsearch failed (
$RC
)!"
...
...
@@ -414,10 +454,18 @@ RC=$?
COUNT
=
`
cat
$SEARCHOUT
|
grep
'^# numEntries:'
|
sed
's;.*\([0-9]\+\)$;\1;'
`
case
$RC
in
0
)
echo
"...success; didn't bump into server-side
unchecked
limit (got
$COUNT
entries)"
echo
"...success; didn't bump into
either requested (
$SIZELIMIT
) or
server-side
size
limit (got
$COUNT
entries)"
;;
11
)
echo
"...bumped into server-side unchecked limit"
4
)
if
test
"x
$COUNT
"
!=
"x"
;
then
if
test
$SIZELIMIT
=
$COUNT
;
then
echo
"...bumped into requested (
$SIZELIMIT
) size limit"
else
echo
"...bumped into server-side size limit (
$COUNT
)"
fi
else
echo
"...bumped into either requested (
$SIZELIMIT
) or server-side size limit"
fi
;;
*
)
echo
"ldapsearch failed (
$RC
)!"
...
...
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