]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test023-refint
s/ldap_sync.h/ldap.h/
[openldap] / tests / scripts / test023-refint
index 3b16efa140932976e6df1ff8f742a767b060bfd6..4caf801248a75c291f06f9fdcab1c3e8f471498d 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 2004-2007 The OpenLDAP Foundation.
+## Copyright 2004-2008 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -158,6 +158,7 @@ $LDAPADD -D "$REFINTDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
        $TESTOUT 2>&1 << ETEST
 dn: uid=special,ou=users,o=refint
 objectClass: inetOrgPerson
+objectClass: extensibleObject
 uid: special
 sn: special
 cn: special
@@ -171,6 +172,13 @@ givenName: special
 member: uid=alice,ou=users,o=refint
 ETEST
 
+RC=$?
+if test $RC != 0 ; then
+       echo "ldapadd failed ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit $RC
+fi
+
 echo "Testing delete when referential attribute is a MUST..."
 $LDAPMODIFY -v -D "$REFINTDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
        $TESTOUT 2>&1 << EDEL