diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-30 15:02:50 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-30 20:11:15 -0700 |
commit | 694f2876c9da51dc16a00d45de92edf8884dfbed (patch) | |
tree | 6ce7cbb28fd8aad99413122fef54c0171edef858 /source4 | |
parent | fbee3586fdd6f04db6321646df54c147c843a5e3 (diff) | |
download | samba-694f2876c9da51dc16a00d45de92edf8884dfbed.tar.gz samba-694f2876c9da51dc16a00d45de92edf8884dfbed.tar.xz samba-694f2876c9da51dc16a00d45de92edf8884dfbed.zip |
s4-spn: don't try and send an empty SPN list
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/scripting/bin/samba_spnupdate | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate index 6a69f48a45d..502eebaf537 100755 --- a/source4/scripting/bin/samba_spnupdate +++ b/source4/scripting/bin/samba_spnupdate @@ -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) |