Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
5a50224f
Commit
5a50224f
authored
Feb 12, 2008
by
Quanah Gibson-Mount
Browse files
ITS#5319
parent
05f7c26d
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
5a50224f
...
...
@@ -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)
...
...
servers/slapd/back-bdb/modrdn.c
View file @
5a50224f
...
...
@@ -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:
...
...
tests/scripts/test005-modrdn
View file @
5a50224f
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment