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
Tero Saarni
OpenLDAP
Commits
52bba704
Commit
52bba704
authored
Dec 08, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Jan 04, 2022
Browse files
ITS#9763 Make sure we keep cn=config values separate
parent
e87569f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/refint.c
View file @
52bba704
...
...
@@ -242,6 +242,17 @@ refint_cf_gen(ConfigArgs *c)
switch
(
c
->
type
)
{
case
REFINT_ATTRS
:
rc
=
0
;
if
(
c
->
op
!=
SLAP_CONFIG_ADD
&&
c
->
argc
>
2
)
{
/* We wouldn't know how to delete these values later */
snprintf
(
c
->
cr_msg
,
sizeof
(
c
->
cr_msg
),
"Please insert multiple names as separate %s values"
,
c
->
argv
[
0
]
);
Debug
(
LDAP_DEBUG_CONFIG
|
LDAP_DEBUG_NONE
,
"%s: %s
\n
"
,
c
->
log
,
c
->
cr_msg
);
rc
=
LDAP_INVALID_SYNTAX
;
break
;
}
for
(
i
=
1
;
i
<
c
->
argc
;
++
i
)
{
ad
=
NULL
;
if
(
slap_str2ad
(
c
->
argv
[
i
],
&
ad
,
&
text
)
...
...
Write
Preview
Supports
Markdown
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