This commit is contained in:
Quanah Gibson-Mount 2008-02-12 00:20:28 +00:00
parent 05f7c26dc0
commit 5a50224f13
3 changed files with 34 additions and 0 deletions

View file

@ -2,6 +2,7 @@ OpenLDAP 2.3 Change Log
OpenLDAP 2.3.41 Engineering
Fixed slapd idlcache on adds (ITS#5086)
Fixed slapd-bdb modrdn to same dn (ITS#5319)
Fixed syncrepl propagation of errors (ITS#5282)
Fixed crash when no-op control is used (ITS#5358)

View file

@ -519,6 +519,9 @@ retry: /* transaction retry */
case DB_NOTFOUND:
break;
case 0:
/* Allow rename to same DN */
if ( nei == ei )
break;
rs->sr_err = LDAP_ALREADY_EXISTS;
goto return_results;
default:

View file

@ -233,6 +233,36 @@ if test $RC -eq 0 ; then
exit 1
fi
echo "Testing modrdn with newRdn exact same as target..."
$LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
$TESTOUT 2>&1 'cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com' 'cn=James A Jones 1'
RC=$?
case $RC in
0)
;;
*)
echo "ldapmodrdn failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
;;
esac
echo "Testing modrdn with newRdn same as target, changed case..."
$LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
$TESTOUT 2>&1 'cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com' 'cn=James A JONES 1'
RC=$?
case $RC in
0)
;;
*)
echo "ldapmodrdn failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
;;
esac
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo ">>>>> Test succeeded"