Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
d72244cd
Commit
d72244cd
authored
17 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#5319
parent
88590f7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/back-bdb/modrdn.c
+3
-0
3 additions, 0 deletions
servers/slapd/back-bdb/modrdn.c
tests/scripts/test005-modrdn
+30
-0
30 additions, 0 deletions
tests/scripts/test005-modrdn
with
34 additions
and
0 deletions
CHANGES
+
1
−
0
View file @
d72244cd
...
...
@@ -20,6 +20,7 @@ OpenLDAP 2.4.8 Engineering
Fixed slapd NULL set values (ITS#5286)
Fixed slapd segv with SASL/OTP (ITS#5259)
Fixed slapd-bdb segv with bdb4.6 (ITS#5322)
Fixed slapd-bdb modrdn to same dn (ITS#5319)
Added slapd-bdb/slapd-hdb DB encryption (ITS#5359)
Fixed slapd-ldif delete (ITS#5265)
Fixed slapd-monitor crash (ITS#5311)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/modrdn.c
+
3
−
0
View file @
d72244cd
...
...
@@ -559,6 +559,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:
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/test005-modrdn
+
30
−
0
View file @
d72244cd
...
...
@@ -261,6 +261,36 @@ case $RC in
;;
esac
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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment