diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-07-18 17:13:30 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-07-18 09:32:53 +0200 |
commit | e4001a78c1d0b286b37e19c733cf1bbc18166818 (patch) | |
tree | bb2099eaa6998935660d83ec2219e891bc9b411a /source4/dsdb/samdb/ldb_modules/repl_meta_data.c | |
parent | 5630e25a35ea95ca848281933a5a3a96306986a4 (diff) | |
download | samba-e4001a78c1d0b286b37e19c733cf1bbc18166818.tar.gz samba-e4001a78c1d0b286b37e19c733cf1bbc18166818.tar.bz2 samba-e4001a78c1d0b286b37e19c733cf1bbc18166818.zip |
dsdb: Allocate new OID to allow updates of a read-only replica
Normally this would be a very bad idea, but the specific case of fixing the instanceType
is the only case where this makes sense.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/repl_meta_data.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 1dc7ea057c..6f26299c6a 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -1391,7 +1391,8 @@ static int replmd_update_rpmd(struct ldb_module *module, struct ldb_message_element *el; /*if we are RODC and this is a DRSR update then its ok*/ - if (!ldb_request_get_control(req, DSDB_CONTROL_REPLICATED_UPDATE_OID)) { + if (!ldb_request_get_control(req, DSDB_CONTROL_REPLICATED_UPDATE_OID) + && !ldb_request_get_control(req, DSDB_CONTROL_DBCHECK_MODIFY_RO_REPLICA)) { unsigned instanceType; ret = samdb_rodc(ldb, rodc); |