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
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)!"
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)!"
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)!"
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)!"
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)!"
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)!"