]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-meta/compare.c
add support for session tracking (draft-wahl-ldap-sessio) to proxy backends requests
[openldap] / servers / slapd / back-meta / compare.c
index 0a8cf10e6bf7803ac194220ba7cfb4a2d3f74e02..b381daf89eb315bef307f576b2bb1f89851fae79 100644 (file)
@@ -113,8 +113,7 @@ meta_back_compare( Operation *op, SlapReply *rs )
 
 retry:;
        ctrls = op->o_ctrls;
-       rc = ldap_back_proxy_authz_ctrl( &mc->mc_conns[ candidate ].msc_bound_ndn,
-               mt->mt_version, &mt->mt_idassert, op, rs, &ctrls );
+       rc = meta_back_controls_add( op, rs, mc, candidate, &ctrls );
        if ( rc != LDAP_SUCCESS ) {
                send_ldap_result( op, rs );
                goto cleanup;
@@ -130,13 +129,13 @@ retry:;
                do_retry = 0;
                if ( meta_back_retry( op, rs, &mc, candidate, LDAP_BACK_SENDERR ) ) {
                        /* if the identity changed, there might be need to re-authz */
-                       (void)ldap_back_proxy_authz_ctrl_free( op, &ctrls );
+                       (void)ldap_back_controls_free( op, rs, &ctrls );
                        goto retry;
                }
        }
 
 cleanup:;
-       (void)ldap_back_proxy_authz_ctrl_free( op, &ctrls );
+       (void)ldap_back_controls_free( op, rs, &ctrls );
 
        if ( mdn.bv_val != op->o_req_dn.bv_val ) {
                free( mdn.bv_val );