summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-25 17:52:43 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-26 06:29:06 +0000
commitf3ceec9b1b9e0f2a4a40cf25cacbd157fb690de4 (patch)
tree6d8cf7f60f3a79a55da1e9734cc8c62374e2e49f /source4
parent95b56aabcbfe2754a34eac627a6bc7226cbd3f17 (diff)
downloadsamba-f3ceec9b1b9e0f2a4a40cf25cacbd157fb690de4.tar.gz
samba-f3ceec9b1b9e0f2a4a40cf25cacbd157fb690de4.tar.bz2
samba-f3ceec9b1b9e0f2a4a40cf25cacbd157fb690de4.zip
s4-spn: don't try to do SPN updates as a RODC
we don't have the permissions to do it
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/samba_spnupdate4
1 files changed, 4 insertions, 0 deletions
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)