s4:security Remove use of user_sid and group_sid from struct security_token
[ira/wip.git] / source4 / rpc_server / drsuapi / getncchanges.c
index ba47b9b04028352d3a2545d67cfae4df3de3d1f3..0beb99d758a0af3cc4f38bb1e228f022abdb84c4 100644 (file)
@@ -774,7 +774,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
            (req8->replica_flags & DRSUAPI_DRS_WRIT_REP)) {
                DEBUG(3,(__location__ ": Removing WRIT_REP flag for replication by RODC %s\n",
                         dom_sid_string(mem_ctx,
-                                       dce_call->conn->auth_state.session_info->security_token->user_sid)));
+                                       dce_call->conn->auth_state.session_info->security_token->sids[PRIMARY_USER_SID_INDEX])));
                req8->replica_flags &= ~DRSUAPI_DRS_WRIT_REP;
        }