Diff for /tests/scripts/test010-passwd between versions 1.20 and 1.21

version 1.20, 2005/02/27 15:46:51 version 1.21, 2005/09/29 06:00:33
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.19 2005/01/01 19:50:02 kurt Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.20 2005/02/27 15:46:51 kurt Exp $
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.  ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##  ##
 ## Copyright 1998-2005 The OpenLDAP Foundation.  ## Copyright 1998-2005 The OpenLDAP Foundation.
Line 60  $LDAPSEARCH -h $LOCALHOST -p $PORT1 \ Line 60  $LDAPSEARCH -h $LOCALHOST -p $PORT1 \
         -b "$BASEDN" \          -b "$BASEDN" \
         'objectclass=*' >> $SEARCHOUT 2>&1          'objectclass=*' >> $SEARCHOUT 2>&1
   
   echo "Using ldappasswd to test a few error conditions ..."
   echo "Pass 0" >> $TESTOUT
   $LDAPPASSWD -h $LOCALHOST -p $PORT1 \
           -w secret -a "" -s newsecret \
           -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
   RC=$?
   if test $RC = 0 ; then
           echo "ldappasswd unexpectantly passed ($RC)! old empty"
           test $KILLSERVERS != no && kill -HUP $KILLPIDS
           exit $RC
   fi
   $LDAPPASSWD -h $LOCALHOST -p $PORT1 \
           -w secret -a oldsecret -s "" \
           -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
   RC=$?
   if test $RC = 0 ; then
           echo "ldappasswd unexpectantly passed ($RC)! new empty"
           test $KILLSERVERS != no && kill -HUP $KILLPIDS
           exit $RC
   fi
   $LDAPPASSWD -h $LOCALHOST -p $PORT1 \
           -w secret -a oldsecret -s newsecret \
           -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
   RC=$?
   if test $RC = 0 ; then
           echo "ldappasswd unexpectantly passed ($RC)! wrong old"
           test $KILLSERVERS != no && kill -HUP $KILLPIDS
           exit $RC
   fi
   
 echo "Using ldappasswd (PASS 1)  ..."  echo "Using ldappasswd (PASS 1)  ..."
 echo "Pass 1" >> $TESTOUT  echo "Pass 1" >> $TESTOUT
 $LDAPPASSWD -h $LOCALHOST -p $PORT1 \  $LDAPPASSWD -h $LOCALHOST -p $PORT1 \

Removed from v.1.20  
changed lines
  Added in v.1.21


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org