Diff for /tests/scripts/test010-passwd between versions 1.18.2.2 and 1.18.2.3

version 1.18.2.2, 2005/03/14 22:25:04 version 1.18.2.3, 2005/09/29 19:07:59
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.18.2.1 2005/01/20 18:04:07 kurt Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.22 2005/09/29 18:30:10 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 \
Line 141  fi Line 171  fi
   
 echo "Logging end state with ldapsearch..."  echo "Logging end state with ldapsearch..."
 echo "" >> $TESTOUT  echo "" >> $TESTOUT
 echo "++ Initial search" >> $TESTOUT  echo "++ End search" >> $TESTOUT
 $LDAPSEARCH -h $LOCALHOST -p $PORT1 \  $LDAPSEARCH -h $LOCALHOST -p $PORT1 \
         -D "$MANAGERDN" -w $PASSWD \          -D "$MANAGERDN" -w $PASSWD \
         -b "$BASEDN" \          -b "$BASEDN" \

Removed from v.1.18.2.2  
changed lines
  Added in v.1.18.2.3


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