From: Pierangelo Masarati Date: Wed, 21 Apr 2004 23:02:58 +0000 (+0000) Subject: smoothen ppolicy test X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~447 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=339b34ac1f5c01517a4e544a5ef097d92e229ce4;p=openldap smoothen ppolicy test --- diff --git a/tests/scripts/test022-ppolicy b/tests/scripts/test022-ppolicy index 02576b5e39..22fd1c28d8 100755 --- a/tests/scripts/test022-ppolicy +++ b/tests/scripts/test022-ppolicy @@ -13,6 +13,8 @@ ## top-level directory of the distribution or, alternatively, at ## . +set -x + echo "running defines.sh" . $SRCDIR/scripts/defines.sh @@ -94,20 +96,24 @@ fi echo "Testing password expiration..." $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \ $TESTOUT 2>&1 << EOMODS -dn: uid=nd, dc=example, dc=com +dn: uid=nd, ou=People, dc=example, dc=com changetype: modify replace: pwdChangedTime pwdChangedTime: 20031231000001Z EOMODS -$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS > $SEARCHOUT 2>&1 +$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS \ + -b "$BASEDN" -s base > $SEARCHOUT 2>&1 sleep 2 -$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS >> $SEARCHOUT 2>&1 +$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS \ + -b "$BASEDN" -s base >> $SEARCHOUT 2>&1 sleep 2 -$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS >> $SEARCHOUT 2>&1 +$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS \ + -b "$BASEDN" -s base >> $SEARCHOUT 2>&1 sleep 2 -$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS >> $SEARCHOUT 2>&1 +$LDAPSEARCH -e ppolicy -h $LOCALHOST -p $PORT1 -D "$USER" -w $PASS \ + -b "$BASEDN" -s base >> $SEARCHOUT 2>&1 RC=$? if test $RC = 0 ; then echo "Password expiration failed ($RC)!"