Lines Matching refs:op
58 Operation *op,
69 if ( op->ors_tlimit != SLAP_NO_LIMIT ) {
70 stoptime = op->o_time + op->ors_tlimit;
74 if ( be_issuffix( op->o_bd, &op->o_req_ndn ) ) {
77 rs->sr_matched = op->o_req_dn.bv_val;
79 if( op->ors_scope != LDAP_SCOPE_ONELEVEL ) {
85 e.e_name.bv_val = ch_strdup( op->o_req_dn.bv_val );
86 e.e_name.bv_len = op->o_req_dn.bv_len;
87 e.e_nname.bv_val = ch_strdup( op->o_req_ndn.bv_val );
88 e.e_nname.bv_len = op->o_req_ndn.bv_len;
93 if( ldap_bv2rdn( &op->o_req_dn, &rdn, &next,
121 if ( test_filter( op, &e, op->ors_filter ) == LDAP_COMPARE_TRUE ) {
123 rs->sr_attrs = op->ors_attrs;
125 send_search_entry( op, rs );
133 if ( op->ors_scope != LDAP_SCOPE_BASE ) {
137 pw_start( op->o_bd );
142 if ( op->o_abandon ) {
149 if ( op->ors_tlimit != SLAP_NO_LIMIT
152 send_ldap_error( op, rs, LDAP_TIMELIMIT_EXCEEDED, NULL );
158 if ( pw2entry( op->o_bd, pw, &e ) ) {
165 if ( test_filter( op, &e, op->ors_filter ) == LDAP_COMPARE_TRUE ) {
167 if ( --op->ors_slimit == -1 ) {
168 send_ldap_error( op, rs, LDAP_SIZELIMIT_EXCEEDED, NULL );
175 rs->sr_attrs = op->ors_attrs;
177 send_search_entry( op, rs );
193 if (! be_issuffix( op->o_bd, &op->o_req_ndn ) ) {
194 dnParent( &op->o_req_ndn, &parent );
200 if( !be_issuffix( op->o_bd, &parent ) ) {
202 for( i=0; op->o_bd->be_nsuffix[i].bv_val != NULL; i++ ) {
203 if( dnIsSuffix( &op->o_req_ndn, &op->o_bd->be_nsuffix[i] ) ) {
204 rs->sr_matched = op->o_bd->be_suffix[i].bv_val;
212 if( op->ors_scope == LDAP_SCOPE_ONELEVEL ) {
216 if ( ldap_bv2rdn( &op->o_req_dn, &rdn, &next,
224 pw_start( op->o_bd );
233 rc = pw2entry( op->o_bd, pw, &e );
240 if ( test_filter( op, &e, op->ors_filter ) == LDAP_COMPARE_TRUE ) {
242 rs->sr_attrs = op->ors_attrs;
244 send_search_entry( op, rs );
255 send_ldap_result( op, rs );