Diff for /tests/scripts/test010-passwd between versions 1.18.2.8 and 1.19

version 1.18.2.8, 2008/02/11 23:24:28 version 1.19, 2005/01/01 19:50:02
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.18.2.7 2007/01/02 21:44:13 kurt Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.18 2004/01/01 18:15:41 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-2008 The OpenLDAP Foundation.  ## Copyright 1998-2005 The OpenLDAP Foundation.
 ## All rights reserved.  ## All rights reserved.
 ##  ##
 ## Redistribution and use in source and binary forms, with or without  ## Redistribution and use in source and binary forms, with or without
Line 28  if test $WAIT != 0 ; then Line 28  if test $WAIT != 0 ; then
 fi  fi
 KILLPIDS="$PID"  KILLPIDS="$PID"
   
 sleep 1  
   
 echo "Using ldapsearch to check that slapd is running..."  echo "Using ldapsearch to check that slapd is running..."
 for i in 0 1 2 3 4 5; do  for i in 0 1 2 3 4 5; do
         $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \          $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
Line 62  $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 1  
 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 1  
 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 1  
 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 171  if test $RC != 0 ; then Line 139  if test $RC != 0 ; then
         exit $RC          exit $RC
 fi  fi
   
 echo "Logging end state with ldapsearch..."  
 echo "" >> $TESTOUT  
 echo "++ End search" >> $TESTOUT  
 $LDAPSEARCH -h $LOCALHOST -p $PORT1 \  
         -D "$MANAGERDN" -w $PASSWD \  
         -b "$BASEDN" \  
         'objectclass=*' >> $TESTOUT 2>&1  
   
   
 test $KILLSERVERS != no && kill -HUP $KILLPIDS  test $KILLSERVERS != no && kill -HUP $KILLPIDS
   
 echo ">>>>> Test succeeded"  echo ">>>>> Test succeeded"

Removed from v.1.18.2.8  
changed lines
  Added in v.1.19


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