From 50f3fe14dbd50924379ae764a5b5dd184b3db560 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 29 Apr 2005 01:42:24 +0000 Subject: [PATCH] perform internal operations as rootdn, if any --- servers/slapd/back-monitor/init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index a2587f4d18..6652833a09 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -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 ); -- 2.39.5