X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest026-dn;h=6d1223bf610b7af62157f37abba6b96e64276afd;hb=3cb9d64de3d2fe9d0e80a9a631335b909f7b64b4;hp=0178af4933f5c7366695e1602a3f07fc48ec807a;hpb=3926e05aaaaa34ae21dc0a6c6036e6430097b398;p=openldap diff --git a/tests/scripts/test026-dn b/tests/scripts/test026-dn index 0178af4933..6d1223bf61 100755 --- a/tests/scripts/test026-dn +++ b/tests/scripts/test026-dn @@ -1,7 +1,7 @@ #! /bin/sh ## This work is part of OpenLDAP Software . ## -## Copyright 2004 The OpenLDAP Foundation. +## Copyright 2004-2005 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -92,6 +92,28 @@ if test $RC != 0 ; then exit $RC fi +echo "Searching database for uniqueMember (approx) ..." +$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ + "(uniqueMember~=dc=example,dc=com)" >> $SEARCHOUT 2>&1 + +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + +echo "Searching database for uniqueMember (approx) ..." +$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ + "(uniqueMember~=dc=example,dc=com#'001000'B)" >> $SEARCHOUT 2>&1 + +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + test $KILLSERVERS != no && kill -HUP $KILLPIDS LDIFOUT=$DNOUT