Lines Matching defs:op2
83 Operation op2 = *op;
98 op2.o_bd = &db;
99 op2.o_bd->bd_info = (BackendInfo *)on->on_info;
100 op2.o_tag = LDAP_REQ_SEARCH;
101 op2.o_dn = op->o_bd->be_rootdn;
102 op2.o_ndn = op->o_bd->be_rootndn;
103 op2.o_callback = &cb;
107 dnParent( &op->o_req_ndn, &op2.o_req_dn );
108 op2.o_req_ndn = op2.o_req_dn;
110 op2.ors_limit = NULL;
111 op2.ors_slimit = 1;
112 op2.ors_tlimit = SLAP_NO_LIMIT;
113 op2.ors_attrs = slap_anlist_no_attrs;
114 op2.ors_attrsonly = 1;
115 op2.ors_deref = LDAP_DEREF_NEVER;
116 op2.ors_scope = LDAP_SCOPE_ONELEVEL;
124 op2.ors_filterstr.bv_len = 0;
126 op2.ors_filterstr.bv_len = STRLENOF( "(&)" );
132 op2.ors_filterstr.bv_len += ad_rdnValue->ad_cname.bv_len
136 op2.ors_filterstr.bv_val = op->o_tmpalloc( op2.ors_filterstr.bv_len + 1, op->o_tmpmemctx );
138 ptr = op2.ors_filterstr.bv_val;
155 assert( ptr == op2.ors_filterstr.bv_val + op2.ors_filterstr.bv_len );
156 op2.ors_filter = str2filter_x( op, op2.ors_filterstr.bv_val );
157 assert( op2.ors_filter != NULL );
159 (void)op2.o_bd->be_search( &op2, &rs2 );
161 filter_free_x( op, op2.ors_filter, 1 );
162 op->o_tmpfree( op2.ors_filterstr.bv_val, op->o_tmpmemctx );