echo "Pass 1" >> $TESTOUT
$LDAPPASSWD -h localhost -p $PORT \
-w secret -s newsecret \
- "cn=md5, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
fi
$LDAPPASSWD -h localhost -p $PORT \
-w secret -s newsecret \
- "cn=smd5, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=smd5, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID
fi
$LDAPPASSWD -h localhost -p $PORT \
-w secret -s newsecret \
- "cn=sha, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=sha, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID
fi
$LDAPPASSWD -h localhost -p $PORT \
-w secret -s newsecret \
- "cn=ssha, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=ssha, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID
echo "Using ldappasswd (PASS 2) ..."
$LDAPPASSWD -h localhost -p $PORT \
-w newsecret \
- "cn=md5, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID
fi
$LDAPPASSWD -h localhost -p $PORT \
-w newsecret \
- "cn=smd5, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=smd5, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID
fi
$LDAPPASSWD -h localhost -p $PORT \
-w newsecret \
- "cn=sha, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=sha, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID
fi
$LDAPPASSWD -h localhost -p $PORT \
-w newsecret \
- "cn=ssha, $BASEDN" >> $TESTOUT 2>&1
+ -D "cn=ssha, $BASEDN" >> $TESTOUT 2>&1
if test $RC != 0 ; then
echo "ldappasswd failed ($RC)!"
kill -HUP $PID