mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-19 02:28:47 -05:00
ITS#9718 - Fix nonportable sed usage
This commit is contained in:
parent
f4b53e3b5e
commit
cc5d35f8a1
1 changed files with 4 additions and 4 deletions
|
|
@ -105,7 +105,7 @@ fi
|
|||
|
||||
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||
echo "$DELAYATTR" >> $SEARCHOUT
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*seconds_before_unlock=\(\d*\)/\1/p'`
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*seconds_before_unlock=\([[:digit:]]*\)/\1/p'`
|
||||
|
||||
echo "Waiting $DELAY seconds for lockout to reset..."
|
||||
sleep $DELAY
|
||||
|
|
@ -122,7 +122,7 @@ fi
|
|||
|
||||
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||
echo "$DELAYATTR" >> $SEARCHOUT
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\([[:digit:]]*\)/\1/p'`
|
||||
|
||||
echo "Testing password expiration"
|
||||
echo "Waiting $DELAY seconds for password to expire..."
|
||||
|
|
@ -493,7 +493,7 @@ $LDAPSEARCH -e ppolicy -H $URI1 -D "$USER" -w $PASS \
|
|||
|
||||
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||
echo "$DELAYATTR" >> $SEARCHOUT
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\([[:digit:]]*\)/\1/p'`
|
||||
|
||||
echo "Waiting $DELAY seconds for password to expire..."
|
||||
sleep $DELAY
|
||||
|
|
@ -739,7 +739,7 @@ EOMODS
|
|||
|
||||
DELAYATTR=`$LDAPSEARCH -D "$MANAGERDN" -H $URI1 -w $PASSWD -b "$USER" -E accountUsability 1.1`
|
||||
echo "$DELAYATTR" >> $TESTOUT
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\(\d*\)/\1/p'`
|
||||
DELAY=`echo "$DELAYATTR" | sed -n -e 's/.*expire=\([[:digit:]]*\)/\1/p'`
|
||||
DELAY=`expr $DELAY - 10`
|
||||
|
||||
echo "Testing password expiration"
|
||||
|
|
|
|||
Loading…
Reference in a new issue