Diff for /tests/scripts/test010-passwd between versions 1.18 and 1.18.2.6

version 1.18, 2004/01/01 18:15:41 version 1.18.2.6, 2006/01/03 22:16:29
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.17 2003/11/28 19:00:23 kurt Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.18.2.5 2005/10/05 17:41:32 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-2004 The OpenLDAP Foundation.  ## Copyright 1998-2006 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 60  $LDAPSEARCH -h $LOCALHOST -p $PORT1 \ Line 62  $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 139  if test $RC != 0 ; then Line 171  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  
changed lines
  Added in v.1.18.2.6


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