mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
use '/noprompt' parameter when requesting paged results
This commit is contained in:
parent
d1b692ceb4
commit
72c558f202
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user