]> git.sur5r.net Git - openldap/commitdiff
Don't allow changes to the monitor database
authorHoward Chu <hyc@openldap.org>
Tue, 27 Apr 2004 12:18:42 +0000 (12:18 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 27 Apr 2004 12:18:42 +0000 (12:18 +0000)
servers/slapd/back-monitor/database.c

index b754376c334685c424bf284831f7f5b2525cae9e..50b93dca1989364e4b16ebe4a24ac10469a9cc37 100644 (file)
@@ -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;