Commit 21e49339 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3820 fix olcReadOnly check

parent c384e2ed
......@@ -694,7 +694,8 @@ 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) != 0;
c->value_int = (c->be->be_restrictops & SLAP_RESTRICT_OP_WRITES) ==
SLAP_RESTRICT_OP_WRITES;
break;
case CFG_AZPOLICY:
c->value_string = ch_strdup( slap_sasl_getpolicy());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment