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
Jaak Ristioja
OpenLDAP
Commits
72c558f2
Commit
72c558f2
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
use '/noprompt' parameter when requesting paged results
parent
d1b692ce
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/test025-limits
+16
-16
16 additions, 16 deletions
tests/scripts/test025-limits
with
16 additions
and
16 deletions
tests/scripts/test025-limits
+
16
−
16
View file @
72c558f2
...
...
@@ -498,7 +498,7 @@ PAGESIZE=5
echo
"Testing no limits requested for unlimited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Unlimited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -516,7 +516,7 @@ SIZELIMIT=2
echo
"Testing size limit request (
$SIZELIMIT
) for unlimited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
-z
$SIZELIMIT
\
-D
'cn=Unlimited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -537,7 +537,7 @@ TIMELIMIT=10
echo
"Testing time limit request (
$TIMELIMIT
s) for unlimited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
-l
$TIMELIMIT
\
-D
'cn=Unlimited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -557,7 +557,7 @@ esac
echo
"Testing no limits requested for soft limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Soft Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -578,7 +578,7 @@ SIZELIMIT=2
echo
"Testing lower than soft limit request (
$SIZELIMIT
) for soft limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
-z
$SIZELIMIT
\
-D
'cn=Soft Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -607,7 +607,7 @@ SIZELIMIT=100
echo
"Testing higher than soft limit request (
$SIZELIMIT
) for soft limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
-z
$SIZELIMIT
\
-D
'cn=Soft Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -636,7 +636,7 @@ SIZELIMIT=2
echo
"Testing lower than hard limit request (
$SIZELIMIT
) for hard limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
-z
$SIZELIMIT
\
-D
'cn=Hard Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -657,7 +657,7 @@ SIZELIMIT=100
echo
"Testing higher than hard limit request (
$SIZELIMIT
) for hard limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
-z
$SIZELIMIT
\
-D
'cn=Hard Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -680,7 +680,7 @@ esac
echo
"Testing lower than unchecked limit request for unchecked limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Unchecked Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(uid=uncheckedlimited)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(uid=uncheckedlimited)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -700,7 +700,7 @@ esac
echo
"Testing higher than unchecked limit requested for unchecked limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Unchecked Limited User,ou=People,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -724,7 +724,7 @@ echo ""
echo
"Testing no limit requested for unlimited page size ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -744,7 +744,7 @@ esac
echo
"Testing no limit requested for limited page size ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -767,7 +767,7 @@ esac
echo
"Testing no limit requested for pagedResults disabled ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -790,7 +790,7 @@ esac
echo
"Testing no limit requested for pagedResults total count limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com'
\
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -814,7 +814,7 @@ SIZELIMIT=8
echo
"Testing higher than hard but lower then total count limit requested for pagedResults total count limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com'
\
-z
$SIZELIMIT
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-z
$SIZELIMIT
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
@@ -846,7 +846,7 @@ SIZELIMIT=15
echo
"Testing higher than total count limit requested for pagedResults total count limited ID..."
$LDAPRSEARCH
-S
""
-b
"
$BASEDN
"
-h
$LOCALHOST
-p
$PORT1
-w
secret
\
-D
'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com'
\
-z
$SIZELIMIT
-E
'!pr='
$PAGESIZE
'(objectClass=*)'
</dev/null
>
$SEARCHOUT
2>&1
-z
$SIZELIMIT
-E
'!pr='
$PAGESIZE
'/noprompt'
'(objectClass=*)'
>
$SEARCHOUT
2>&1
RC
=
$?
COUNT
=
`
awk
'/^# numEntries:/ {print $3}'
$SEARCHOUT
`
case
$RC
in
...
...
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