Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
a4fddc7b
Commit
a4fddc7b
authored
Nov 09, 2018
by
Howard Chu
Browse files
ITS#8932 check rdnNormalize success
parent
d40a832d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/bconfig.c
View file @
a4fddc7b
...
...
@@ -4903,7 +4903,11 @@ config_renumber_one( Operation *op, SlapReply *rs, CfEntryInfo *parent,
/* Do the equivalent of ModRDN */
/* Replace DN / NDN */
newrdn
.
bv_len
=
ptr1
-
newrdn
.
bv_val
;
rdnNormalize
(
0
,
NULL
,
NULL
,
&
newrdn
,
&
nnewrdn
,
NULL
);
rc
=
rdnNormalize
(
0
,
NULL
,
NULL
,
&
newrdn
,
&
nnewrdn
,
NULL
);
if
(
rc
)
{
free
(
newrdn
.
bv_val
);
return
LDAP_NAMING_VIOLATION
;
}
rc
=
config_rename_one
(
op
,
rs
,
e
,
parent
,
a
,
&
newrdn
,
&
nnewrdn
,
use_ldif
);
free
(
nnewrdn
.
bv_val
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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