]> git.sur5r.net Git - openldap/commitdiff
Fix authz bug introduced by last change
authorKurt Zeilenga <kurt@openldap.org>
Tue, 5 Sep 2000 19:45:06 +0000 (19:45 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 5 Sep 2000 19:45:06 +0000 (19:45 +0000)
servers/slapd/connection.c

index f50eb3d269abfe8e47dc0f4721e1b9d8dd72a05b..60e846a7a647a22c4fb2aeecf9818f3021fdf62b 100644 (file)
@@ -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,