mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9718 test022: preserve DELAY search output
Save a copy in $SEARCHOUT or test.out so it can be examined in case the test fails.
This commit is contained in:
parent
eab4ece0c2
commit
f07f8c20f5
1 changed files with 12 additions and 8 deletions
|
|
@ -103,8 +103,9 @@ if test $COUNT != 2 ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DELAY=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD \
|
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||||
-b "$USER" -E accountUsability 1.1 | sed -n -e 's/.*seconds_before_unlock=\(\d*\)/\1/p'`
|
echo "$DELAYATTR" >> $SEARCHOUT
|
||||||
|
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*seconds_before_unlock=\(\d*\)/\1/p'`
|
||||||
|
|
||||||
echo "Waiting $DELAY seconds for lockout to reset..."
|
echo "Waiting $DELAY seconds for lockout to reset..."
|
||||||
sleep $DELAY
|
sleep $DELAY
|
||||||
|
|
@ -119,8 +120,9 @@ if test $RC != 0 ; then
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DELAY=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD \
|
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||||
-b "$USER" -E accountUsability 1.1 | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
echo "$DELAYATTR" >> $SEARCHOUT
|
||||||
|
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
||||||
|
|
||||||
echo "Testing password expiration"
|
echo "Testing password expiration"
|
||||||
echo "Waiting $DELAY seconds for password to expire..."
|
echo "Waiting $DELAY seconds for password to expire..."
|
||||||
|
|
@ -489,8 +491,9 @@ fi
|
||||||
$LDAPSEARCH -e ppolicy -H $URI1 -D "$USER" -w $PASS \
|
$LDAPSEARCH -e ppolicy -H $URI1 -D "$USER" -w $PASS \
|
||||||
-b "$BASEDN" -s base > $SEARCHOUT 2>&1
|
-b "$BASEDN" -s base > $SEARCHOUT 2>&1
|
||||||
|
|
||||||
DELAY=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD \
|
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||||
-b "$USER" -E accountUsability 1.1 | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
echo "$DELAYATTR" >> $SEARCHOUT
|
||||||
|
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
||||||
|
|
||||||
echo "Waiting $DELAY seconds for password to expire..."
|
echo "Waiting $DELAY seconds for password to expire..."
|
||||||
sleep $DELAY
|
sleep $DELAY
|
||||||
|
|
@ -734,8 +737,9 @@ delete: pwdReset
|
||||||
|
|
||||||
EOMODS
|
EOMODS
|
||||||
|
|
||||||
DELAY=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD \
|
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||||
-b "$USER" -E accountUsability 1.1 | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
echo "$DELAYATTR" >> $TESTOUT
|
||||||
|
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
||||||
DELAY=`expr $DELAY - 10`
|
DELAY=`expr $DELAY - 10`
|
||||||
|
|
||||||
echo "Testing password expiration"
|
echo "Testing password expiration"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue