]> git.sur5r.net Git - openldap/commitdiff
support "subordinate" scope
authorPierangelo Masarati <ando@openldap.org>
Sat, 9 Sep 2006 00:00:44 +0000 (00:00 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 9 Sep 2006 00:00:44 +0000 (00:00 +0000)
servers/slapd/back-monitor/search.c

index 3f30f489b5a5239e8017deb26f8a47d759ed1b9c..4b4b9bef7c78ad32fd5f93ac1d521647d6b02396 100644 (file)
@@ -35,8 +35,7 @@ monitor_send_children(
        Operation       *op,
        SlapReply       *rs,
        Entry           *e_parent,
-       int             sub
-)
+       int             sub )
 {
        monitor_info_t  *mi = ( monitor_info_t * )op->o_bd->be_private;
        Entry                   *e,
@@ -228,7 +227,9 @@ monitor_back_search( Operation *op, SlapReply *rs )
                break;
 
        case LDAP_SCOPE_ONELEVEL:
-               rc = monitor_send_children( op, rs, e, 0 );
+       case LDAP_SCOPE_SUBORDINATE:
+               rc = monitor_send_children( op, rs, e,
+                       op->oq_search.rs_scope == LDAP_SCOPE_SUBORDINATE );
                break;
 
        case LDAP_SCOPE_SUBTREE: