mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
don't return matchedDN in the case described in ITS#4195
This commit is contained in:
parent
133a673e65
commit
218004aa4b
@ -429,6 +429,27 @@ telephoneNumber: +1 313 555 5331
|
|||||||
|
|
||||||
# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
|
# 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"...
|
# searching base="o=Example,c=US"...
|
||||||
dn: cn=Added Group,ou=Groups,o=Example,c=US
|
dn: cn=Added Group,ou=Groups,o=Example,c=US
|
||||||
objectClass: groupOfNames
|
objectClass: groupOfNames
|
||||||
|
@ -161,6 +161,33 @@ case $RC in
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
# Do some modifications
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user