summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-01-11 21:56:40 +1300
committerKarolin Seeger <kseeger@samba.org>2018-01-13 17:37:07 +0100
commitb4a90a650e969cd65b5104d37e9c57275909b336 (patch)
treeb56468e931f8e9cab62d53c8c432e63eb680ec50 /python
parente579d5bd48dfc7bc93ecc126d42fd4389ded0e28 (diff)
downloadsamba-b4a90a650e969cd65b5104d37e9c57275909b336.tar.gz
samba_kcc: respect kcc.read_only flag on RODC
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/kcc/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/kcc/__init__.py b/python/samba/kcc/__init__.py
index 9cf077b6afa..5df3e788227 100644
--- a/python/samba/kcc/__init__.py
+++ b/python/samba/kcc/__init__.py
@@ -913,7 +913,7 @@ class KCC(object):
drsuapi.DRSUAPI_DRS_NONGC_RO_REP)
if t_repsFrom.replica_flags != replica_flags:
t_repsFrom.replica_flags = replica_flags
- c_rep.commit_repsFrom(self.samdb)
+ c_rep.commit_repsFrom(self.samdb, ro=self.readonly)
else:
if dnstr not in needed_rep_table:
delete_reps.add(dnstr)