X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest024-unique;h=e904fb3c6dca40e504e34c96e0160fd7f3969101;hb=59e9ff6243465640956b58ad1756a3ede53eca7c;hp=20c137f0a29287a3b4c794b53355d09c0e2258ce;hpb=9f97c1d2efdabc8817538464cd7d08d55f7e51fd;p=openldap diff --git a/tests/scripts/test024-unique b/tests/scripts/test024-unique index 20c137f0a2..e904fb3c6d 100755 --- a/tests/scripts/test024-unique +++ b/tests/scripts/test024-unique @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## 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