s4-spn: don't try and send an empty SPN list
authorAndrew Tridgell <tridge@samba.org>
Thu, 30 Sep 2010 22:02:50 +0000 (15:02 -0700)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Oct 2010 03:11:15 +0000 (20:11 -0700)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/bin/samba_spnupdate

index 6a69f48a45d1f9666d6f1ddc75bcc4cd6bbdbd70..502eebaf537b64efe29c64d159df9a70bb6b60e0 100755 (executable)
@@ -212,6 +212,8 @@ def call_rodc_update(d):
         ns.str = n
         spn_names.append(ns)
         req1.count = req1.count + 1
+    if spn_names == []:
+        return
     req1.spn_names = spn_names
     (level, res) = drs.DsWriteAccountSpn(drs_handle, 1, req1)