From 339b34ac1f5c01517a4e544a5ef097d92e229ce4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 21 Apr 2004 23:02:58 +0000 Subject: [PATCH] smoothen ppolicy test --- tests/scripts/test022-ppolicy | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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)!" -- 2.39.5