From: Howard Chu Date: Tue, 27 Apr 2004 12:18:42 +0000 (+0000) Subject: Don't allow changes to the monitor database X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~418 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2349373dafd5490876f8753b03f662b05c7a28a3;p=openldap Don't allow changes to the monitor database --- diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index b754376c33..50b93dca19 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -265,6 +265,9 @@ monitor_subsys_database_modify( return LDAP_NO_SUCH_OBJECT; be = &backendDB[n]; + if ( SLAP_MONITOR(be) ) + return LDAP_UNWILLING_TO_PERFORM; + cur = (be->be_restrictops & SLAP_RESTRICT_OP_WRITES) ? 1 : 0; save_attrs = e->e_attrs;