]> git.sur5r.net Git - openldap/commitdiff
perform internal operations as rootdn, if any
authorPierangelo Masarati <ando@openldap.org>
Fri, 29 Apr 2005 01:42:24 +0000 (01:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 29 Apr 2005 01:42:24 +0000 (01:42 +0000)
servers/slapd/back-monitor/init.c

index a2587f4d18ca008a871ff07ff5445c2b444074b2..6652833a09a090f78b9f01e68d982788d6dc601b 100644 (file)
@@ -400,7 +400,7 @@ monitor_back_register_entry_parent(
                if ( monitor_filter2ndn( base, scope, filter, &ndn ) ) {
                        /* entry does not exist */
                        Debug( LDAP_DEBUG_ANY,
-                               "monitor_back_register_entry_*(\"\"): "
+                               "monitor_back_register_entry_parent(\"\"): "
                                "base=%s scope=%d filter=%s : "
                                "unable to find entry\n",
                                base->bv_val ? base->bv_val : "\"\"",
@@ -424,7 +424,7 @@ monitor_back_register_entry_parent(
                if ( mp_parent->mp_flags & MONITOR_F_VOLATILE ) {
                        /* entry is volatile; cannot append callback */
                        Debug( LDAP_DEBUG_ANY,
-                               "monitor_back_register_entry_*(\"%s\"): "
+                               "monitor_back_register_entry_parent(\"%s\"): "
                                "entry is volatile\n",
                                e_parent->e_name.bv_val, 0, 0 );
                        rc = -1;
@@ -623,6 +623,9 @@ monitor_filter2ndn(
        op->o_nocaching = 1;
        op->o_managedsait = SLAP_CONTROL_NONCRITICAL;
 
+       op->o_dn = be_monitor->be_rootdn;
+       op->o_ndn = be_monitor->be_rootndn;
+
        rc = op->o_bd->be_search( op, &rs );
 
        filter_free_x( op, op->ors_filter );