From 826177bd2427a6fdf32c2466040de73a7f286d35 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 23 Aug 2010 11:32:28 +1000 Subject: s4-drs: removed the warning on WRIT_REP being set we just need to clear this flag --- source4/rpc_server/drsuapi/getncchanges.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/rpc_server/drsuapi') diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 7a1ccd90a4..85522d0b05 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -1027,10 +1027,8 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_ security_level = security_session_user_level(dce_call->conn->auth_state.session_info, samdb_domain_sid(sam_ctx)); if (security_level == SECURITY_RO_DOMAIN_CONTROLLER && - (req8->replica_flags & DRSUAPI_DRS_WRIT_REP) && - req8->extended_op != DRSUAPI_EXOP_REPL_SECRET) { - DEBUG(3,(__location__ ": Removing WRIT_REP flag for replication by RODC %s\n", - dom_sid_string(mem_ctx, user_sid))); + req8->replica_flags & DRSUAPI_DRS_WRIT_REP) { + /* we rely on this flag being unset for RODC requests */ req8->replica_flags &= ~DRSUAPI_DRS_WRIT_REP; } -- cgit