s4: samba_spnupdate: fix "if we are DNS server" check
commitd6428319d4b13b0f37fac591fba83a62f356c7e5
authorBjörn Baumbach <bb@sernet.de>
Wed, 1 Aug 2012 13:09:00 +0000 (1 15:09 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 3 Aug 2012 06:11:33 +0000 (3 08:11 +0200)
tree81befdfc686f83335ef3b4242377f38443ca0da3
parent8dde55c7fb55f3a03c222609d7340db8056c3365
s4: samba_spnupdate: fix "if we are DNS server" check

We need to check if we have hasMasterNCs. If we are RODC we have
hasFullReplicaNCs instead of hasMasterNCs.

TODO: maybe check for hasFullReplicaNCs, too?

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/scripting/bin/samba_spnupdate