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
Joe Martin
OpenLDAP
Commits
ba33a35b
Commit
ba33a35b
authored
May 18, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6109
parent
133574cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
ba33a35b
...
...
@@ -13,6 +13,7 @@ OpenLDAP 2.4.17 Engineering
Fixed slapd moduleload with static backends and modules (ITS#6016)
Fixed slapd normalization of updated schema attributes (ITS#5540)
Fixed slapd pagedresults stacked control with overlays (ITS#6056)
Fixed slapd readonly restrictions (ITS#6109)
Fixed slapd sending cancelled operations results (ITS#6103)
Fixed slapd sockets usage on windows (ITS#6039)
Fixed slapd-hdb freeing of already freed entries (ITS#6074)
...
...
servers/slapd/backend.c
View file @
ba33a35b
...
...
@@ -1296,7 +1296,8 @@ backend_check_restrictions(
}
if
(
(
restrictops
&
opflag
)
||
(
exopflag
&&
(
restrictops
&
exopflag
)
)
)
{
||
(
exopflag
&&
(
restrictops
&
exopflag
)
)
||
((
restrictops
&
SLAP_RESTRICT_READONLY
)
&&
updateop
))
{
if
(
(
restrictops
&
SLAP_RESTRICT_OP_MASK
)
==
SLAP_RESTRICT_OP_READS
)
{
rs
->
sr_text
=
"read operations restricted"
;
}
else
if
(
restrictops
&
exopflag
)
{
...
...
servers/slapd/bconfig.c
View file @
ba33a35b
...
...
@@ -893,8 +893,7 @@ config_generic(ConfigArgs *c) {
if
(
!
c
->
rvalue_vals
)
rc
=
1
;
break
;
case
CFG_RO
:
c
->
value_int
=
(
c
->
be
->
be_restrictops
&
SLAP_RESTRICT_OP_WRITES
)
==
SLAP_RESTRICT_OP_WRITES
;
c
->
value_int
=
(
c
->
be
->
be_restrictops
&
SLAP_RESTRICT_READONLY
);
break
;
case
CFG_AZPOLICY
:
c
->
value_string
=
ch_strdup
(
slap_sasl_getpolicy
());
...
...
@@ -1466,9 +1465,9 @@ config_generic(ConfigArgs *c) {
case
CFG_RO
:
if
(
c
->
value_int
)
c
->
be
->
be_restrictops
|=
SLAP_RESTRICT_
OP_WRITES
;
c
->
be
->
be_restrictops
|=
SLAP_RESTRICT_
READONLY
;
else
c
->
be
->
be_restrictops
&=
~
SLAP_RESTRICT_
OP_WRITES
;
c
->
be
->
be_restrictops
&=
~
SLAP_RESTRICT_
READONLY
;
break
;
case
CFG_AZPOLICY
:
...
...
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