]> git.sur5r.net Git - openldap/commitdiff
add was failing because not compliant with schema
authorPierangelo Masarati <ando@openldap.org>
Sat, 15 Mar 2008 16:32:24 +0000 (16:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 15 Mar 2008 16:32:24 +0000 (16:32 +0000)
tests/scripts/test023-refint

index 9e58707d0ffb8b689ce988f3095c7b36a34c4a55..4caf801248a75c291f06f9fdcab1c3e8f471498d 100755 (executable)
@@ -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