From: Kurt Zeilenga Date: Tue, 5 Sep 2000 19:45:06 +0000 (+0000) Subject: Fix authz bug introduced by last change X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f97482e10fb7d9e8881c4297036eeee4d6fda780;p=openldap Fix authz bug introduced by last change --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index f50eb3d269..60e846a7a6 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1174,19 +1174,18 @@ static int connection_op_activate( Connection *conn, Operation *op ) arg->co_conn = conn; arg->co_op = op; + arg->co_op->o_authz = conn->c_authz; arg->co_op->o_dn = ch_strdup( conn->c_dn != NULL ? conn->c_dn : "" ); arg->co_op->o_ndn = ch_strdup( arg->co_op->o_dn ); (void) dn_normalize( arg->co_op->o_ndn ); - - arg->co_op->o_protocol = conn->c_protocol - ? conn->c_protocol : LDAP_VERSION3; - arg->co_op->o_connid = conn->c_connid; - - arg->co_op->o_authz = conn->c_authz; arg->co_op->o_authtype = conn->c_authtype; arg->co_op->o_authmech = conn->c_authmech != NULL ? ch_strdup( conn->c_authmech ) : NULL; + arg->co_op->o_protocol = conn->c_protocol + ? conn->c_protocol : LDAP_VERSION3; + arg->co_op->o_connid = conn->c_connid; + slap_op_add( &conn->c_ops, arg->co_op ); status = ldap_pvt_thread_pool_submit( &connection_pool,