diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-23 15:39:37 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-25 10:38:44 -0700 |
commit | 370446769dc0fff752f9fb40c7dcf878cc5cd92e (patch) | |
tree | 48713036017c6ed39f93d706cf0e1a1cc2a9aec7 /source4 | |
parent | 3aea12d0ab70997355904aa6625fce6015657aa7 (diff) | |
download | samba-370446769dc0fff752f9fb40c7dcf878cc5cd92e.tar.gz samba-370446769dc0fff752f9fb40c7dcf878cc5cd92e.tar.bz2 samba-370446769dc0fff752f9fb40c7dcf878cc5cd92e.zip |
s4-repl: force on WRIT_REP when we are a writable replica
this ensures we always mark ourselves as writeable when we are not
an RODC
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/repl/drepl_extended.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/repl/drepl_extended.c b/source4/dsdb/repl/drepl_extended.c index 07c2328512..cf1c25a097 100644 --- a/source4/dsdb/repl/drepl_extended.c +++ b/source4/dsdb/repl/drepl_extended.c @@ -102,10 +102,6 @@ static WERROR drepl_create_extended_source_dsa(struct dreplsrv_service *service, return WERR_NOMEM; } - if (!service->am_rodc) { - sdsa->repsFrom1->replica_flags = DRSUAPI_DRS_WRIT_REP; - } - werr = dreplsrv_out_connection_attach(service, sdsa->repsFrom1, &sdsa->conn); if (!W_ERROR_IS_OK(werr)) { DEBUG(0,(__location__ ": Failed to attach connection to %s\n", @@ -147,6 +143,9 @@ static WERROR drepl_create_extended_source_dsa(struct dreplsrv_service *service, } } + if (!service->am_rodc) { + sdsa->repsFrom1->replica_flags |= DRSUAPI_DRS_WRIT_REP; + } *_sdsa = sdsa; return WERR_OK; |