mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
add passwd change test
This commit is contained in:
parent
19ea555ca3
commit
efaad6c616
@ -328,6 +328,28 @@ EOMODS
|
|||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NEWPW="newsecret"
|
||||||
|
echo "Testing passwd change..."
|
||||||
|
$LDAPPASSWD -h $LOCALHOST -p $PORT1 \
|
||||||
|
-D "${BINDDN}" -w ${BINDPW} -s ${NEWPW} \
|
||||||
|
"$BINDDN" >> $TESTOUT 2>&1
|
||||||
|
|
||||||
|
RC=$?
|
||||||
|
if test $RC != 0 ; then
|
||||||
|
echo "ldappasswd failed ($RC)!"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
|
exit $RC
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Testing bind with new secret..."
|
||||||
|
$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "$BINDDN" -w $NEWPW
|
||||||
|
RC=$?
|
||||||
|
if test $RC != 0 ; then
|
||||||
|
echo "ldapwhoami failed ($RC)!"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
|
exit $RC
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Using ldapsearch to retrieve all the entries..."
|
echo "Using ldapsearch to retrieve all the entries..."
|
||||||
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" \
|
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" \
|
||||||
"objectClass=*" > $SEARCHOUT 2>&1
|
"objectClass=*" > $SEARCHOUT 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user