Skip to content
Snippets Groups Projects
Commit 218004aa authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

don't return matchedDN in the case described in ITS#4195

parent 133a673e
Branches
Tags
No related merge requests found
......@@ -429,6 +429,27 @@ telephoneNumber: +1 313 555 5331
# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
# searching base="ou=Meta,o=Example,c=US"...
dn: cn=Dan Aykroyd,ou=Meta,o=Example,c=US
objectClass: inetOrgPerson
cn: Dan Aykroyd
sn: Aykroyd
userPassword:: ZWx3b29k
description: Elwood Blues
dn: cn=John Belushi,ou=Meta,o=Example,c=US
objectClass: inetOrgPerson
cn: John Belushi
sn: Belushi
userPassword:: amFjaw==
description: Joliet Jack Blues
dn: ou=Meta,o=Example,c=US
objectClass: organizationalUnit
ou: Meta
# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
# searching base="o=Example,c=US"...
dn: cn=Added Group,ou=Groups,o=Example,c=US
objectClass: groupOfNames
......
......@@ -161,6 +161,33 @@ case $RC in
;;
esac
# ITS#4195: spurious matchedDN when the search scopes the main target,
# and the searchBase is not present, so that target returns noSuchObject
BASEDN="ou=Meta,o=Example,c=US"
echo "Searching base=\"$BASEDN\"..."
echo "# searching base=\"$BASEDN\"..." >> $SEARCHOUT
$LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 -b "$BASEDN" >> $SEARCHOUT 2>&1
RC=$?
#if test $RC != 0 ; then
# echo "Search failed ($RC)!"
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
case $RC in
0)
;;
51)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 0
;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
;;
esac
#
# Do some modifications
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment