2 # $OpenLDAP: pkg/ldap/tests/scripts/test025-limits,v 1.19.2.5 2008/02/11 23:26:51 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
16 ## FIXME: need to exclude legal but wrong results...
18 echo "running defines.sh"
19 .
$SRCDIR/scripts
/defines.sh
21 mkdir
-p $TESTDIR $DBDIR1
23 echo "Running slapadd to build slapd database..."
24 .
$CONFFILTER $BACKEND $MONITORDB < $LIMITSCONF > $ADDCONF
25 $SLAPADD -f $ADDCONF -l $LDIFLIMITS
27 if test $RC != 0 ; then
28 echo "slapadd failed ($RC)!"
32 echo "Running slapindex to index slapd database..."
33 .
$CONFFILTER $BACKEND $MONITORDB < $LIMITSCONF > $CONF1
36 if test $RC != 0 ; then
37 echo "warning: slapindex failed ($RC)"
38 echo " assuming no indexing support"
41 echo "Starting slapd on TCP/IP port $PORT1..."
42 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
44 if test $WAIT != 0 ; then
52 echo "Testing slapd searching..."
53 for i
in 0 1 2 3 4 5; do
54 $LDAPSEARCH -s base
-b "$MONITOR" -h $LOCALHOST -p $PORT1 \
55 '(objectclass=*)' > /dev
/null
2>&1
57 if test $RC = 0 ; then
60 echo "Waiting 5 seconds for slapd to start..."
64 if test $RC != 0 ; then
65 echo "ldapsearch failed ($RC)!"
66 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
70 cat /dev
/null
> $SEARCHOUT
73 echo "Testing regular search limits"
76 echo "Testing no limits requested for unlimited ID..."
77 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
78 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
79 '(objectClass=*)' >$SEARCHOUT 2>&1
81 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
84 if test x
"$COUNT" != x
; then
85 echo "...success (got $COUNT entries)"
87 echo "...error: did not expect ldapsearch success ($RC)!"
88 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
93 echo "ldapsearch failed ($RC)!"
94 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
99 echo "Testing no limits requested for rootdn=$MANAGERDN..."
100 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
102 '(objectClass=*)' >$SEARCHOUT 2>&1
104 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
107 if test x
"$COUNT" != x
; then
108 echo "...success (got $COUNT entries)"
110 echo "...error: did not expect ldapsearch success ($RC)!"
111 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
116 echo "ldapsearch failed ($RC)!"
117 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
123 echo "Testing limit requested for rootdn=$MANAGERDN..."
124 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
126 '(objectClass=*)' >$SEARCHOUT 2>&1
128 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
131 if test x
"$COUNT" != x
; then
132 if test "$COUNT" -gt "$SIZELIMIT" ; then
133 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
134 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
137 echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)"
139 echo "...error: did not expect ldapsearch success ($RC)!"
140 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
145 if test x
"$COUNT" != x
; then
146 if test "$COUNT" = "$SIZELIMIT" ; then
147 echo "...bumped into requested size limit ($SIZELIMIT)"
149 echo "...error: got $COUNT entries with a requested sizelimit of $SIZELIMIT"
150 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
154 echo "...error: bumped into server-side size limit, but got no entries!"
155 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
160 echo "ldapsearch failed ($RC)!"
161 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
167 echo "Testing size limit request ($SIZELIMIT) for unlimited ID..."
168 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
169 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
170 '(objectClass=*)' > $SEARCHOUT 2>&1
172 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
175 if test x
"$COUNT" != x
; then
176 if test "$COUNT" -gt "$SIZELIMIT" ; then
177 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
178 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
181 echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)"
183 echo "...error: did not expect ldapsearch success ($RC)!"
184 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
189 if test x
"$COUNT" != x
; then
190 if test "$COUNT" = "$SIZELIMIT" ; then
191 echo "...bumped into requested size limit ($SIZELIMIT)"
193 echo "...error: got $COUNT entries with a requested sizelimit of $SIZELIMIT"
194 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
198 echo "...error: bumped into server-side size limit, but got no entries!"
199 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
204 echo "ldapsearch failed ($RC)!"
205 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
211 echo "Testing time limit request ($TIMELIMIT s) for unlimited ID..."
212 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-l $TIMELIMIT \
213 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
214 '(objectClass=*)' > $SEARCHOUT 2>&1
216 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
219 if test x
"$COUNT" != x
; then
220 echo "...didn't bump into the requested time limit ($TIMELIMIT s; got $COUNT entries)"
222 echo "...error: did not expect ldapsearch success ($RC)!"
223 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
228 if test x
"$COUNT" != x
; then
231 echo "...bumped into requested time limit ($TIMELIMIT s; got $COUNT entries)"
234 echo "ldapsearch failed ($RC)!"
235 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
240 echo "Testing no limits requested for soft limited ID..."
241 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
242 -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \
243 '(objectClass=*)' > $SEARCHOUT 2>&1
245 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
248 if test x
"$COUNT" != x
; then
249 echo "...didn't bump into server-side size limit (got $COUNT entries)"
251 echo "...error: did not expect ldapsearch success ($RC)!"
252 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
257 if test x
"$COUNT" != x
; then
258 echo "...bumped into server-side size limit (got $COUNT entries)"
260 echo "...error: bumped into server-side size limit, but got no entries!"
261 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
266 echo "ldapsearch failed ($RC)!"
267 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
273 echo "Testing lower than soft limit request ($SIZELIMIT) for soft limited ID..."
274 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
275 -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \
276 '(objectClass=*)' > $SEARCHOUT 2>&1
278 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
281 if test x
"$COUNT" != x
; then
282 if test "$COUNT" -gt "$SIZELIMIT" ; then
283 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
284 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
287 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
289 echo "...error: did not expect ldapsearch success ($RC)!"
290 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
295 if test "x$COUNT" != "x" ; then
296 if test "x$SIZELIMIT" = "x$COUNT" ; then
297 echo "...bumped into requested ($SIZELIMIT) size limit"
299 echo "...bumped into server-side size limit ($COUNT)"
302 echo "...error: bumped into server-side size limit, but got no entries!"
303 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
308 echo "ldapsearch failed ($RC)!"
309 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
315 echo "Testing higher than soft limit request ($SIZELIMIT) for soft limited ID..."
316 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
317 -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \
318 '(objectClass=*)' > $SEARCHOUT 2>&1
320 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
323 if test x
"$COUNT" != x
; then
324 if test "$COUNT" -gt "$SIZELIMIT" ; then
325 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
326 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
329 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
331 echo "...error: did not expect ldapsearch success ($RC)!"
332 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
337 if test "x$COUNT" != "x" ; then
338 if test "x$SIZELIMIT" = "x$COUNT" ; then
339 echo "...bumped into requested ($SIZELIMIT) size limit"
341 echo "...bumped into server-side size limit ($COUNT)"
344 echo "...error: bumped into server-side size limit, but got no entries!"
345 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
350 echo "ldapsearch failed ($RC)!"
351 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
357 echo "Testing lower than hard limit request ($SIZELIMIT) for hard limited ID..."
358 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
359 -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \
360 '(objectClass=*)' > $SEARCHOUT 2>&1
362 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
365 if test x
"$COUNT" != x
; then
366 if test "$COUNT" -gt "$SIZELIMIT" ; then
367 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
368 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
371 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
373 echo "...error: did not expect ldapsearch success ($RC)!"
374 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
379 echo "...bumped into requested ($SIZELIMIT) size limit"
382 echo "ldapsearch failed ($RC)!"
383 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
389 echo "Testing higher than hard limit request ($SIZELIMIT) for hard limited ID..."
390 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
391 -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \
392 '(objectClass=*)' > $SEARCHOUT 2>&1
394 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
397 if test x
"$COUNT" != x
; then
398 if test "$COUNT" -gt "$SIZELIMIT" ; then
399 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
400 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
403 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
405 echo "...error: did not expect ldapsearch success ($RC)!"
406 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
411 if test x
"$COUNT" != x
; then
412 if test "$COUNT" = "$SIZELIMIT" ; then
413 echo "...error: bumped into requested ($SIZELIMIT) size limit"
414 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
417 echo "...got size limit $COUNT instead of requested $SIZELIMIT entries"
420 echo "...error: bumped into server-side size limit, but got no entries!"
421 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
426 # echo "...bumped into server-side hard size administrative limit"
429 echo "ldapsearch failed ($RC)!"
430 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
436 echo "Testing max limit request ($SIZELIMIT) for hard limited ID..."
437 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
438 -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \
439 '(objectClass=*)' > $SEARCHOUT 2>&1
441 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
444 if test x
"$COUNT" != x
; then
445 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
447 echo "...error: did not expect ldapsearch success ($RC)!"
448 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
453 if test x
"$COUNT" != x
; then
454 echo "...bumped into requested ($SIZELIMIT=$COUNT) size limit"
456 echo "...error: bumped into server-side size limit, but got no entries!"
457 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
462 # echo "...bumped into server-side hard size administrative limit"
465 echo "ldapsearch failed ($RC)!"
466 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
471 echo "Testing lower than unchecked limit request for unchecked limited ID..."
472 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
473 -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \
474 '(uid=uncheckedlimited)' > $SEARCHOUT 2>&1
476 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
479 if test x
"$COUNT" != x
; then
480 echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
482 echo "...error: did not expect ldapsearch success ($RC)!"
483 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
488 echo "...error: bumped into unchecked administrative limit"
489 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
493 echo "ldapsearch failed ($RC)!"
494 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
499 case $BACKEND in bdb | hdb
)
501 echo "Testing higher than unchecked limit requested for unchecked limited ID..."
502 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
503 -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \
504 '(objectClass=*)' > $SEARCHOUT 2>&1
506 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
509 if test x
"$COUNT" != x
; then
510 echo "...error: didn't bump into server-side unchecked limit (got $COUNT entries)"
512 echo "...error: did not expect ldapsearch success ($RC)!"
514 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
518 echo "...bumped into unchecked administrative limit"
521 echo "ldapsearch failed ($RC)!"
522 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
527 echo "Testing no limits requested for unchecked limited group..."
528 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
529 -D 'cn=Unchecked Limited User 2,ou=People,dc=example,dc=com' \
530 '(objectClass=*)' > $SEARCHOUT 2>&1
532 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
535 if test x
"$COUNT" != x
; then
536 echo "...error: didn't bump into server-side unchecked limit (got $COUNT entries)"
538 echo "...error: did not expect ldapsearch success ($RC)!"
540 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
544 echo "...bumped into unchecked administrative limit"
547 echo "ldapsearch failed ($RC)!"
548 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
553 *) echo "Skipping test for unchecked limit with $BACKEND backend." ;;
556 echo "Testing no limits requested for limited regex..."
557 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
558 -D 'cn=Foo User,ou=People,dc=example,dc=com' \
559 '(objectClass=*)' > $SEARCHOUT 2>&1
561 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
564 if test x
"$COUNT" != x
; then
565 echo "...didn't bump into server-side size limit (got $COUNT entries)"
567 echo "...error: did not expect ldapsearch success ($RC)!"
568 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
573 if test "x$COUNT" != "x" ; then
574 echo "...bumped into server-side size limit ($COUNT)"
576 echo "...error: bumped into server-side size limit, but got no entries!"
577 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
582 echo "ldapsearch failed ($RC)!"
583 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
588 echo "Testing no limits requested for limited onelevel..."
589 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
590 -D 'cn=Bar User,ou=People,dc=example,dc=com' \
591 '(objectClass=*)' > $SEARCHOUT 2>&1
593 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
596 if test x
"$COUNT" != x
; then
597 echo "...didn't bump into server-side size limit (got $COUNT entries)"
599 echo "...error: did not expect ldapsearch success ($RC)!"
600 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
605 if test "x$COUNT" != "x" ; then
606 echo "...bumped into server-side size limit ($COUNT)"
608 echo "...error: bumped into server-side size limit, but got no entries!"
609 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
614 echo "ldapsearch failed ($RC)!"
615 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
620 echo "Testing no limit requested for limited children..."
621 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
622 -D 'cn=Unchecked Limited Users,ou=Groups,dc=example,dc=com' \
623 '(objectClass=*)' > $SEARCHOUT 2>&1
625 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
628 if test x
"$COUNT" != x
; then
629 echo "...didn't bump into server-side size limit (got $COUNT entries)"
631 echo "...error: did not expect ldapsearch success ($RC)!"
632 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
637 if test "x$COUNT" != "x" ; then
638 echo "...bumped into server-side size limit ($COUNT)"
640 echo "...error: bumped into server-side size limit, but got no entries!"
641 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
646 echo "ldapsearch failed ($RC)!"
647 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
652 echo "Testing no limit requested for limited subtree..."
653 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
654 -D 'cn=Unchecked Limited User 3,ou=Admin,dc=example,dc=com' \
655 '(objectClass=*)' > $SEARCHOUT 2>&1
657 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
660 if test x
"$COUNT" != x
; then
661 echo "...didn't bump into server-side size limit (got $COUNT entries)"
663 echo "...error: did not expect ldapsearch success ($RC)!"
664 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
669 if test "x$COUNT" != "x" ; then
670 echo "...bumped into server-side size limit ($COUNT)"
672 echo "...error: bumped into server-side size limit, but got no entries!"
673 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
678 echo "ldapsearch failed ($RC)!"
679 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
684 echo "Testing no limit requested for limited users..."
685 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
686 -D 'cn=Special User,dc=example,dc=com' \
687 '(objectClass=*)' > $SEARCHOUT 2>&1
689 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
692 if test x
"$COUNT" != x
; then
693 echo "...didn't bump into server-side size limit (got $COUNT entries)"
695 echo "...error: did not expect ldapsearch success ($RC)!"
696 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
701 if test "x$COUNT" != "x" ; then
702 echo "...bumped into server-side size limit ($COUNT)"
704 echo "...error: bumped into server-side size limit, but got no entries!"
705 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
710 echo "ldapsearch failed ($RC)!"
711 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
716 echo "Testing no limit requested for limited anonymous..."
717 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
718 '(objectClass=*)' > $SEARCHOUT 2>&1
720 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
723 if test x
"$COUNT" != x
; then
724 echo "...didn't bump into server-side size limit (got $COUNT entries)"
726 echo "...error: did not expect ldapsearch success ($RC)!"
727 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
732 if test "x$COUNT" != "x" ; then
733 echo "...bumped into server-side size limit ($COUNT)"
735 echo "...error: bumped into server-side size limit, but got no entries!"
736 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
741 echo "ldapsearch failed ($RC)!"
742 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
749 # only bdb|hdb currently supports pagedResults control
752 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
754 echo ">>>>> Test succeeded"
759 if test x
"$SLAPD_PAGE_SIZE" != x
; then
760 PAGESIZE
="$SLAPD_PAGE_SIZE"
761 if test "$PAGESIZE" -le 0 ; then
762 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
765 echo "Testing with pagedResults control disabled"
767 echo ">>>>> Test succeeded"
775 echo "Testing regular search limits with pagedResults control (page size $PAGESIZE)"
778 echo "Testing no limits requested for unlimited ID..."
779 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
780 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
781 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' >$SEARCHOUT 2>&1
783 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
786 if test x
"$COUNT" != x
; then
787 echo "...success (got $COUNT entries)"
789 echo "...error: did not expect ldapsearch success ($RC)!"
790 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
795 echo "ldapsearch failed ($RC)!"
796 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
802 echo "Testing size limit request ($SIZELIMIT) for unlimited ID..."
803 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
804 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
805 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
807 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
810 if test x
"$COUNT" != x
; then
811 if test "$COUNT" -gt "$SIZELIMIT" ; then
812 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
813 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
816 echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)"
818 echo "...error: did not expect ldapsearch success ($RC)!"
819 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
824 if test x
"$COUNT" != x
; then
825 if test $COUNT = $SIZELIMIT ; then
826 echo "...bumped into requested size limit ($SIZELIMIT)"
828 echo "...error: got $COUNT entries while requesting $SIZELIMIT..."
829 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
833 echo "...error: bumped into server-side size limit, but got no entries!"
834 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
839 echo "ldapsearch failed ($RC)!"
840 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
846 echo "Testing time limit request ($TIMELIMIT s) for unlimited ID..."
847 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-l $TIMELIMIT \
848 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
849 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
851 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
854 if test x
"$COUNT" != x
; then
855 echo "...didn't bump into the requested time limit ($TIMELIMIT s; got $COUNT entries)"
857 echo "...error: did not expect ldapsearch success ($RC)!"
858 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
863 if test x
"$COUNT" = x
; then
866 echo "...bumped into requested time limit ($TIMELIMIT s; got $COUNT entries)"
869 echo "ldapsearch failed ($RC)!"
870 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
875 echo "Testing no limits requested for soft limited ID..."
876 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
877 -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \
878 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
880 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
883 if test x
"$COUNT" != x
; then
884 echo "...didn't bump into server-side size limit (got $COUNT entries)"
886 echo "...error: did not expect ldapsearch success ($RC)!"
887 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
892 if test x
"$COUNT" != x
; then
893 echo "...bumped into server-side size limit (got $COUNT entries)"
895 echo "...error: bumped into server-side size limit, but got no entries!"
896 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
901 echo "ldapsearch failed ($RC)!"
902 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
908 echo "Testing lower than soft limit request ($SIZELIMIT) for soft limited ID..."
909 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
910 -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \
911 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
913 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
916 if test x
"$COUNT" != x
; then
917 if test "$COUNT" -gt "$SIZELIMIT" ; then
918 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
919 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
922 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
924 echo "...error: did not expect ldapsearch success ($RC)!"
925 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
930 if test "x$COUNT" != "x" ; then
931 if test "x$SIZELIMIT" = "x$COUNT" ; then
932 echo "...bumped into requested ($SIZELIMIT) size limit"
934 echo "...bumped into server-side size limit ($COUNT)"
937 echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
941 echo "ldapsearch failed ($RC)!"
942 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
948 echo "Testing higher than soft limit request ($SIZELIMIT) for soft limited ID..."
949 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
950 -D 'cn=Soft Limited User,ou=People,dc=example,dc=com' \
951 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
953 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
956 if test x
"$COUNT" != x
; then
957 if test "$COUNT" -gt "$SIZELIMIT" ; then
958 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
959 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
962 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
964 echo "...error: did not expect ldapsearch success ($RC)!"
965 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
970 if test "x$COUNT" != "x" ; then
971 if test "x$SIZELIMIT" = "x$COUNT" ; then
972 echo "...bumped into requested ($SIZELIMIT) size limit"
974 echo "...bumped into server-side size limit ($COUNT)"
977 echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
981 echo "ldapsearch failed ($RC)!"
982 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
988 echo "Testing lower than hard limit request ($SIZELIMIT) for hard limited ID..."
989 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
990 -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \
991 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
993 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
996 if test x
"$COUNT" != x
; then
997 if test "$COUNT" -gt "$SIZELIMIT" ; then
998 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
999 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1002 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
1004 echo "...error: did not expect ldapsearch success ($RC)!"
1005 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1010 if test x
"$COUNT" != x
; then
1011 if test "$COUNT" = "$SIZELIMIT" ; then
1012 echo "...bumped into requested ($SIZELIMIT) size limit"
1014 echo "...error: got size limit $SIZELIMIT but $COUNT entries"
1015 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1019 echo "...error: bumped into server-side size limit, but got no entries!"
1020 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1025 echo "ldapsearch failed ($RC)!"
1026 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1032 echo "Testing higher than hard limit request ($SIZELIMIT) for hard limited ID..."
1033 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
1034 -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \
1035 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1037 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1040 if test x
"$COUNT" != x
; then
1041 if test "$COUNT" -gt "$SIZELIMIT" ; then
1042 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
1043 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1046 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
1048 echo "...error: did not expect ldapsearch success ($RC)!"
1049 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1054 if test x
"$COUNT" != x
; then
1055 if test "$COUNT" = "$SIZELIMIT" ; then
1056 echo "...error: bumped into requested ($SIZELIMIT) size limit"
1057 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1060 echo "...got size limit $COUNT instead of requested $SIZELIMIT entries"
1063 echo "...error: bumped into server-side size limit, but got no entries!"
1064 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1069 # echo "...bumped into hard size administrative limit"
1072 echo "ldapsearch failed ($RC)!"
1073 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1079 echo "Testing max limit request ($SIZELIMIT) for hard limited ID..."
1080 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
1081 -D 'cn=Hard Limited User,ou=People,dc=example,dc=com' \
1082 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1084 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1087 if test x
"$COUNT" != x
; then
1088 echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)"
1090 echo "...error: did not expect ldapsearch success ($RC)!"
1091 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1096 if test x
"$COUNT" != x
; then
1097 echo "...bumped into requested ($SIZELIMIT=$COUNT) size limit"
1099 echo "...error: bumped into size limit but got no entries!"
1100 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1105 # echo "...bumped into hard size administrative limit"
1108 echo "ldapsearch failed ($RC)!"
1109 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1114 echo "Testing lower than unchecked limit request for unchecked limited ID..."
1115 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1116 -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \
1117 -E '!pr='$PAGESIZE'/noprompt' '(uid=uncheckedlimited)' > $SEARCHOUT 2>&1
1119 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1122 if test x
"$COUNT" != x
; then
1123 echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
1125 echo "...error: did not expect ldapsearch success ($RC)!"
1126 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1131 # echo "...bumped into unchecked administrative limit"
1134 echo "ldapsearch failed ($RC)!"
1135 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1140 echo "Testing higher than unchecked limit requested for unchecked limited ID..."
1141 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1142 -D 'cn=Unchecked Limited User,ou=People,dc=example,dc=com' \
1143 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1145 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1148 if test x
"$COUNT" != x
; then
1149 echo "...error: didn't bump into server-side unchecked limit (got $COUNT entries)"
1151 echo "...error: did not expect ldapsearch success ($RC)!"
1153 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1157 echo "...bumped into unchecked administrative limit"
1160 echo "ldapsearch failed ($RC)!"
1161 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1167 echo "Testing specific search limits with pagedResults control"
1170 echo "Testing no limit requested for unlimited page size ID..."
1171 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1172 -D 'cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com' \
1173 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1175 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1178 if test x
"$COUNT" != x
; then
1179 echo "...success; didn't bump into server-side size limit (got $COUNT entries)"
1181 echo "...error: did not expect ldapsearch success ($RC)!"
1182 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1187 if test x
"$COUNT" != x
; then
1188 echo "...bumped into server-side size limit (got $COUNT entries)"
1190 echo "...error: bumped into server-side size limit, but got no entries!"
1191 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1196 echo "ldapsearch failed ($RC)!"
1197 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1202 echo "Testing no limit requested for limited page size ID..."
1203 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1204 -D 'cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com' \
1205 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1207 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1210 echo "...success; didn't bump into server-side page size limit (got $COUNT entries)"
1213 echo "...bumped into page size limit ($COUNT)"
1216 echo "...bumped into page size administrative limit"
1219 echo "ldapsearch failed ($RC)!"
1220 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1225 echo "Testing no limit requested for pagedResults disabled ID..."
1226 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1227 -D 'cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com' \
1228 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1230 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1233 echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
1236 echo "...bumped into server-side size limit ($COUNT)"
1239 echo "...bumped into pagedResults disabled administrative limit"
1242 echo "ldapsearch failed ($RC)!"
1243 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1248 echo "Testing no limit requested for pagedResults total count limited ID..."
1249 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1250 -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \
1251 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1253 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1256 echo "...success; didn't bump into server-side unchecked limit (got $COUNT entries)"
1259 echo "...bumped into server-side size limit ($COUNT)"
1262 echo "...bumped into pagedResults total count administrative limit"
1265 echo "ldapsearch failed ($RC)!"
1266 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1272 echo "Testing higher than hard but lower then total count limit requested for pagedResults total count limited ID..."
1273 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1274 -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \
1275 -z $SIZELIMIT -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1277 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1280 echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side unchecked limit (got $COUNT entries)"
1283 if test "x$COUNT" != "x" ; then
1284 if test "x$SIZELIMIT" = "x$COUNT" ; then
1285 echo "...bumped into requested ($SIZELIMIT) size limit"
1287 echo "...bumped into server-side size limit ($COUNT)"
1290 echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
1294 echo "...bumped into either hard size or pagedResults total count administrative limit"
1297 echo "ldapsearch failed ($RC)!"
1298 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1304 echo "Testing higher than total count limit requested for pagedResults total count limited ID..."
1305 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1306 -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \
1307 -z $SIZELIMIT -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1309 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1312 echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side unchecked limit (got $COUNT entries)"
1315 if test "x$COUNT" != "x" ; then
1316 if test "x$SIZELIMIT" = "x$COUNT" ; then
1317 echo "...bumped into requested ($SIZELIMIT) size limit"
1319 echo "...bumped into server-side size limit ($COUNT)"
1322 echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
1326 echo "...bumped into pagedResults total count administrative limit"
1329 echo "ldapsearch failed ($RC)!"
1330 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1336 echo "Testing max limit requested for pagedResults total count limited ID..."
1337 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
1338 -D 'cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com' \
1339 -z $SIZELIMIT -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1341 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1344 echo "...success; didn't bump into either requested ($SIZELIMIT) or server-side unchecked limit (got $COUNT entries)"
1347 if test "x$COUNT" != "x" ; then
1348 if test "x$SIZELIMIT" = "x$COUNT" ; then
1349 echo "...bumped into requested ($SIZELIMIT) size limit"
1351 echo "...bumped into server-side size limit ($COUNT)"
1354 echo "...bumped into either requested ($SIZELIMIT) or server-side size limit"
1358 echo "...bumped into pagedResults total count administrative limit"
1361 echo "ldapsearch failed ($RC)!"
1362 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1370 echo "Testing size limit request ($SIZELIMIT) for unlimited ID and pagesize=$PAGESIZE..."
1371 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret
-z $SIZELIMIT \
1372 -D 'cn=Unlimited User,ou=People,dc=example,dc=com' \
1373 -E '!pr='$PAGESIZE'/noprompt' '(objectClass=*)' > $SEARCHOUT 2>&1
1375 COUNT
=`awk '/^# numEntries:/ {print $3}' $SEARCHOUT`
1378 if test x
"$COUNT" != x
; then
1379 if test "$COUNT" -gt "$SIZELIMIT" ; then
1380 echo "...error: got $COUNT entries instead of the requested $SIZELIMIT"
1381 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1384 echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)"
1386 echo "...error: did not expect ldapsearch success ($RC)!"
1387 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1392 if test x
"$COUNT" != x
; then
1393 if test $COUNT = $SIZELIMIT ; then
1394 echo "...bumped into requested size limit ($SIZELIMIT)"
1396 echo "...error: got $COUNT entries while requesting $SIZELIMIT..."
1397 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1401 echo "...error: bumped into server-side size limit, but got no entries!"
1402 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1407 echo "ldapsearch failed ($RC)!"
1408 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1413 test $KILLSERVERS != no
&& kill -HUP $KILLPIDS
1415 echo ">>>>> Test succeeded"
1417 test $KILLSERVERS != no
&& wait