1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

samba_kcc: Do not attempt to modify connections on a RODC, replicated attributes are read only

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2015-02-19 10:20:48 +13:00
parent fc932eace8
commit 100ec32aba

View File

@ -377,7 +377,7 @@ class KCC(object):
cn_conn.to_be_deleted = True
if opts.readonly:
if mydsa.is_ro() or opts.readonly:
for dnstr, connect in mydsa.connect_table.items():
if connect.to_be_deleted:
logger.info("TO BE DELETED:\n%s" % connect)