]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test018-syncreplication-persist
s/ldap_sync.h/ldap.h/
[openldap] / tests / scripts / test018-syncreplication-persist
index 50cd004a1c660562342809d415b4c8721dd1addc..5adafc11498a11898da41e506ee0309abdd0f602 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2007 The OpenLDAP Foundation.
+## Copyright 1998-2008 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -240,6 +240,17 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
+echo "Using ldappasswd to change some passwords..."
+$LDAPPASSWD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD \
+       'cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com' \
+       > $TESTOUT 2>&1
+RC=$?
+if test $RC != 0 ; then
+       echo "ldapmodify failed ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit $RC
+fi
+
 echo "Waiting 15 seconds for syncrepl to receive changes..."
 sleep 15
 
@@ -299,6 +310,18 @@ EOMODS
                exit $RC
        fi
 
+       # ITS#4964
+       echo "Trying to change some passwords on the consumer..."
+       $LDAPPASSWD -D "$MANAGERDN" -h $LOCALHOST -p $PORT4 -w $PASSWD \
+               'cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com' \
+               > $TESTOUT 2>&1
+       RC=$?
+       if test $RC != 0 ; then
+               echo "ldapmodify failed ($RC)!"
+               test $KILLSERVERS != no && kill -HUP $KILLPIDS
+               exit $RC
+       fi
+
        echo "Waiting 15 seconds for syncrepl to receive changes..."
        sleep 15
 fi