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
3d908bcd
Commit
3d908bcd
authored
Dec 06, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Dec 10, 2021
Browse files
ITS#9758 Make sure we don't end up with duplicates in entry
parent
da73c184
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/back-sock/config.c
View file @
3d908bcd
...
...
@@ -214,6 +214,10 @@ bs_cf_gen( ConfigArgs *c )
if
(
verbs_to_mask
(
c
->
argc
,
c
->
argv
,
bs_exts
,
&
adds
)
)
{
return
LDAP_INVALID_SYNTAX
;
}
/* Tolerate overlaps in slapd.conf */
if
(
c
->
op
!=
SLAP_CONFIG_ADD
&&
adds
&
si
->
si_extensions
)
{
return
LDAP_TYPE_OR_VALUE_EXISTS
;
}
si
->
si_extensions
|=
adds
;
return
0
;
}
...
...
@@ -222,6 +226,10 @@ bs_cf_gen( ConfigArgs *c )
if
(
verbs_to_mask
(
c
->
argc
,
c
->
argv
,
ov_ops
,
&
adds
)
)
{
return
LDAP_INVALID_SYNTAX
;
}
/* Tolerate overlaps in slapd.conf */
if
(
c
->
op
!=
SLAP_CONFIG_ADD
&&
adds
&
si
->
si_ops
)
{
return
LDAP_TYPE_OR_VALUE_EXISTS
;
}
si
->
si_ops
|=
adds
;
return
0
;
}
...
...
@@ -230,6 +238,10 @@ bs_cf_gen( ConfigArgs *c )
if
(
verbs_to_mask
(
c
->
argc
,
c
->
argv
,
ov_resps
,
&
adds
)
)
{
return
LDAP_INVALID_SYNTAX
;
}
/* Tolerate overlaps in slapd.conf */
if
(
c
->
op
!=
SLAP_CONFIG_ADD
&&
adds
&
si
->
si_resps
)
{
return
LDAP_TYPE_OR_VALUE_EXISTS
;
}
si
->
si_resps
|=
adds
;
return
0
;
}
...
...
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