]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test024-unique
Happy New Year
[openldap] / tests / scripts / test024-unique
index 20c137f0a29287a3b4c794b53355d09c0e2258ce..e904fb3c6dca40e504e34c96e0160fd7f3969101 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 2004-2015 The OpenLDAP Foundation.
+## Copyright 2004-2018 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -344,7 +344,7 @@ givenName: Bill
 EOTUNIQ2
 RC=$?
 if test $RC != $RCODEconstraint ; then
-       echo "olcUniqueAttribtue single deletion hit the wrong value"
+       echo "olcUniqueAttribute single deletion hit the wrong value"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit -1
 fi
@@ -555,6 +555,21 @@ if test $RC != 0 ; then
        exit -1
 fi
 
+echo "Sending an empty modification"
+
+$LDAPMODIFY -D "$UNIQUEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
+        $TESTOUT 2>&1 << EOF
+dn: uid=empty,ou=users,o=unique
+changetype: modify
+EOF
+
+RC=$?
+if test $RC != 0 ; then
+       echo "spurious unique error ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit -1
+fi
+
 echo "Making a record non-unique"
 $LDAPMODIFY -D "uid=dave,ou=users,o=unique" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
     $TESTOUT 2>&1 << EOF