From: Andrew Bartlett Date: Wed, 18 Feb 2015 21:20:48 +0000 (+1300) Subject: samba_kcc: Do not attempt to modify connections on a RODC, replicated attributes... X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=100ec32abad4e67793f1b5e55a890a41c0c9730b;p=obnox%2Fsamba%2Fsamba-obnox.git samba_kcc: Do not attempt to modify connections on a RODC, replicated attributes are read only Signed-off-by: Andrew Bartlett Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam --- diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc index 11bbd9c397e..289c5e931e9 100755 --- a/source4/scripting/bin/samba_kcc +++ b/source4/scripting/bin/samba_kcc @@ -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)