don't play with controls at bind; rather use the ldap_*_ext API

This commit is contained in:
Pierangelo Masarati 2005-01-26 09:52:12 +00:00
parent beb0f6983a
commit 5427af1f62
6 changed files with 6 additions and 6 deletions

View File

@ -169,7 +169,7 @@ meta_back_add( Operation *op, SlapReply *rs )
attrs[ i ] = NULL;
rs->sr_err = ldap_add_ext_s( lc->mc_conns[ candidate ].msc_ld, mdn.bv_val,
attrs, NULL, NULL );
attrs, op->o_ctrls, NULL );
for ( --i; i >= 0; --i ) {
free( attrs[ i ]->mod_bvalues );
free( attrs[ i ] );

View File

@ -144,7 +144,7 @@ meta_back_compare( Operation *op, SlapReply *rs )
*/
rc = ldap_compare_ext( lc->mc_conns[ i ].msc_ld, mdn.bv_val,
mapped_attr.bv_val, &mapped_value,
NULL, NULL, &msgid[ i ] );
op->o_ctrls, NULL, &msgid[ i ] );
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
free( mdn.bv_val );

View File

@ -73,7 +73,7 @@ meta_back_delete( Operation *op, SlapReply *rs )
}
(void)ldap_delete_ext_s( lc->mc_conns[ candidate ].msc_ld, mdn.bv_val,
NULL, NULL );
op->o_ctrls, NULL );
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
free( mdn.bv_val );

View File

@ -183,7 +183,7 @@ meta_back_modify( Operation *op, SlapReply *rs )
modv[ i ] = 0;
rs->sr_err = ldap_modify_ext_s( lc->mc_conns[ candidate ].msc_ld, mdn.bv_val,
modv, NULL, NULL );
modv, op->o_ctrls, NULL );
cleanup:;
if ( mdn.bv_val != op->o_req_dn.bv_val ) {

View File

@ -119,7 +119,7 @@ meta_back_modrdn( Operation *op, SlapReply *rs )
op->orr_newrdn.bv_val,
mnewSuperior.bv_val,
op->orr_deleteoldrdn,
NULL, NULL ) != LDAP_SUCCESS;
op->o_ctrls, NULL ) != LDAP_SUCCESS;
cleanup:;
if ( mdn.bv_val != op->o_req_dn.bv_val ) {

View File

@ -259,7 +259,7 @@ meta_back_search( Operation *op, SlapReply *rs )
rc = ldap_search_ext( lsc->msc_ld,
mbase.bv_val, realscope, mfilter.bv_val,
mapped_attrs, op->ors_attrsonly,
NULL, NULL,
op->o_ctrls, NULL,
NULL, op->ors_slimit, &msgid[ i ] );
if ( mapped_attrs ) {
free( mapped_attrs );