summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-08-23 11:32:28 +1000
committerAndrew Tridgell <tridge@samba.org>2010-08-23 15:55:39 +1000
commit826177bd2427a6fdf32c2466040de73a7f286d35 (patch)
treef7b471c0c9c02e82d137cbeed94113036ed60fef /source4/rpc_server/drsuapi
parentbd7f9813de5d4f7832342f607d8308e916f0c14d (diff)
downloadsamba-826177bd2427a6fdf32c2466040de73a7f286d35.tar.gz
samba-826177bd2427a6fdf32c2466040de73a7f286d35.tar.bz2
samba-826177bd2427a6fdf32c2466040de73a7f286d35.zip
s4-drs: removed the warning on WRIT_REP being set
we just need to clear this flag
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c6
1 files changed, 2 insertions, 4 deletions
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;
}