From: Howard Chu Date: Fri, 22 Apr 2005 18:46:17 +0000 (+0000) Subject: ITS#3573, cannot set pwdChangedTime manually any more X-Git-Tag: OPENLDAP_AC_BP~826 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6bc2cf3c3108ff0bdbfa4f9821e479598c5c8cdd;p=openldap ITS#3573, cannot set pwdChangedTime manually any more --- diff --git a/tests/scripts/test022-ppolicy b/tests/scripts/test022-ppolicy index 158dd6a8e3..21cfed803f 100755 --- a/tests/scripts/test022-ppolicy +++ b/tests/scripts/test022-ppolicy @@ -79,8 +79,8 @@ if test $COUNT != 2 ; then exit 1 fi -echo "Waiting 30 seconds for lockout to reset..." -sleep 30 +echo "Waiting 20 seconds for lockout to reset..." +sleep 20 $LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS \ -b "$BASEDN" -s base >> $SEARCHOUT 2>&1 @@ -91,15 +91,9 @@ if test $RC != 0 ; then exit $RC fi -echo "Testing password expiration..." -$LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \ - $TESTOUT 2>&1 << EOMODS -dn: uid=nd, ou=People, dc=example, dc=com -changetype: modify -replace: pwdChangedTime -pwdChangedTime: 20031231000001Z - -EOMODS +echo "Testing password expiration" +echo "Waiting 20 seconds for password to expire..." +sleep 20 $LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS \ -b "$BASEDN" -s base > $SEARCHOUT 2>&1