ITS#3820 fix olcReadOnly check

This commit is contained in:
Howard Chu 2005-07-01 00:20:54 +00:00
parent c384e2ed13
commit 21e49339b7

View File

@ -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());