• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/back-ldap/

Lines Matching refs:op

39 ldap_build_entry( Operation *op, LDAPMessage *e, Entry *ent,
49 * op->ors_filterstr.bv_val, or realloc'd on the thread's slab otherwise.
53 Operation *op,
98 if ( filter->bv_val == op->ors_filterstr.bv_val ) {
99 filter->bv_val = op->o_tmpalloc( filter->bv_len + 1,
100 op->o_tmpmemctx );
102 AC_MEMCPY( filter->bv_val, op->ors_filterstr.bv_val,
106 filter->bv_val = op->o_tmprealloc( filter->bv_val,
107 filter->bv_len + 1, op->o_tmpmemctx );
130 Operation *op,
133 ldapinfo_t *li = (ldapinfo_t *) op->o_bd->be_private;
154 if ( !ldap_back_dobind( &lc, op, rs, LDAP_BACK_SENDERR ) ) {
163 if ( op->ors_tlimit != SLAP_NO_LIMIT ) {
164 tv.tv_sec = op->ors_tlimit;
166 stoptime = op->o_time + op->ors_tlimit;
173 if ( op->ors_attrs ) {
174 for ( ; !BER_BVISNULL( &op->ors_attrs[i].an_name ); i++ )
179 if ( op->o_bd->be_extra_anlist ) {
180 for ( ; !BER_BVISNULL( &op->o_bd->be_extra_anlist[x].an_name ); x++ )
187 attrs = op->o_tmpalloc( ( i + x + 1 )*sizeof( char * ),
188 op->o_tmpmemctx );
196 for ( i = 0; !BER_BVISNULL( &op->ors_attrs[i].an_name ); i++, j++ ) {
197 attrs[ j ] = op->ors_attrs[i].an_name.bv_val;
202 for ( x = 0; !BER_BVISNULL( &op->o_bd->be_extra_anlist[x].an_name ); x++, j++ ) {
203 if ( op->o_bd->be_extra_anlist[x].an_desc &&
204 ad_inlist( op->o_bd->be_extra_anlist[x].an_desc, op->ors_attrs ) )
209 attrs[ j ] = op->o_bd->be_extra_anlist[x].an_name.bv_val;
216 ctrls = op->o_ctrls;
217 rc = ldap_back_controls_add( op, rs, lc, &ctrls );
223 filter = op->ors_filterstr;
230 ldap_back_munge_filter( op, &filter );
233 rs->sr_err = ldap_pvt_search( lc->lc_ld, op->o_req_dn.bv_val,
234 op->ors_scope, filter.bv_val,
235 attrs, op->ors_attrsonly, ctrls, NULL,
237 op->ors_slimit, op->ors_deref, &msgid );
244 if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_DONTSEND ) ) {
254 rc = ldap_back_op_result( lc, op, rs, msgid, 0, LDAP_BACK_DONTSEND );
266 filter2bv_undef_x( op, op->ors_filter, 1, &filter );
299 if ( op->o_abandon || LDAP_BACK_CONN_ABANDON( lc ) ) {
303 (void)ldap_back_cancel( lc, op, rs, msgid, LDAP_BACK_DONTSEND );
314 (void)ldap_back_cancel( lc, op, rs, msgid, LDAP_BACK_DONTSEND );
316 rc = rs->sr_err = op->o_protocol >= LDAP_VERSION3 ?
326 if ( op->ors_tlimit != SLAP_NO_LIMIT
329 (void)ldap_back_cancel( lc, op, rs, msgid, LDAP_BACK_DONTSEND );
338 lc->lc_time = op->o_time;
353 rc = ldap_build_entry( op, e, &ent, &bdn );
357 rs->sr_attrs = op->ors_attrs;
361 rc = rs->sr_err = send_search_entry( op, rs );
370 op->o_tmpfree( ent.e_name.bv_val, op->o_tmpmemctx );
374 op->o_tmpfree( ent.e_nname.bv_val, op->o_tmpmemctx );
389 (void)ldap_back_cancel( lc, op, rs, msgid, LDAP_BACK_DONTSEND );
416 rs->sr_ref = op->o_tmpalloc( ( cnt + 1 ) * sizeof( struct berval ),
417 op->o_tmpmemctx );
427 ( void )send_search_reference( op, rs );
434 op->o_log_prefix, 0, 0 );
440 op->o_tmpfree( rs->sr_ref, op->o_tmpmemctx );
463 slap_send_ldap_intermediate( op, rs );
506 op->o_log_prefix,
515 rs->sr_ref = op->o_tmpalloc( ( cnt + 1 ) * sizeof( struct berval ),
516 op->o_tmpmemctx );
530 op->o_log_prefix,
556 if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_DONTSEND ) ) {
571 if ( dnPretty( NULL, &match, &pmatch, op->o_tmpmemctx ) != LDAP_SUCCESS ) {
588 ldap_back_quarantine( op, rs );
591 if ( filter.bv_val != op->ors_filterstr.bv_val ) {
592 op->o_tmpfree( filter.bv_val, op->o_tmpmemctx );
600 send_ldap_result( op, rs );
603 (void)ldap_back_controls_free( op, rs, &ctrls );
618 op->o_tmpfree( rs->sr_ref, op->o_tmpmemctx );
627 op->o_tmpfree( attrs, op->o_tmpmemctx );
639 Operation *op,
671 op->o_tmpmemctx ) != LDAP_SUCCESS )
701 op->o_log_prefix, a.bv_val, text );
843 int rc = slap_sort_vals( (Modifications *)attr, &text, &i, op->o_tmpmemctx );
879 Operation *op,
886 ldapinfo_t *li = (ldapinfo_t *) op->o_bd->be_private;
903 /* Tell getconn this is a privileged op */
904 do_not_cache = op->o_do_not_cache;
905 tag = op->o_tag;
907 op->o_do_not_cache = 1;
910 op->o_tag = LDAP_REQ_SEARCH;
911 rc = ldap_back_dobind( &lc, op, &rs, LDAP_BACK_DONTSEND );
912 op->o_do_not_cache = do_not_cache;
913 op->o_tag = tag;
934 filter = op->o_tmpalloc( STRLENOF( "(objectClass=" ")" )
935 + oc->soc_cname.bv_len + 1, op->o_tmpmemctx );
943 ctrls = op->o_ctrls;
944 rc = ldap_back_controls_add( op, &rs, lc, &ctrls );
956 if ( ldap_back_retry( &lc, op, &rs, LDAP_BACK_DONTSEND ) ) {
958 (void)ldap_back_controls_free( op, &rs, &ctrls );
977 rc = ldap_build_entry( op, e, *ent, &bdn );
985 (void)ldap_back_controls_free( op, &rs, &ctrls );
992 op->o_tmpfree( filter, op->o_tmpmemctx );