From f3ceec9b1b9e0f2a4a40cf25cacbd157fb690de4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 25 Sep 2010 17:52:43 -0700 Subject: s4-spn: don't try to do SPN updates as a RODC we don't have the permissions to do it --- source4/scripting/bin/samba_spnupdate | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/scripting') diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate index c675a54b0f..7c9ed4fbdd 100755 --- a/source4/scripting/bin/samba_spnupdate +++ b/source4/scripting/bin/samba_spnupdate @@ -102,6 +102,10 @@ except ldb.LdbError, (num, msg): print("Unable to open sam database %s : %s" % (lp.get("sam database"), msg)) sys.exit(1) +if samdb.am_rodc(): + # don't try and update SPNs on RODC + exit(0) + # get the substitution dictionary sub_vars = get_subst_vars(samdb) -- cgit