mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
perform internal operations as rootdn, if any
This commit is contained in:
parent
5972221836
commit
50f3fe14db
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user