s4:libnet/py_net.c: "py_net_finddc" - add an "address" parameter
[obnox/samba/samba-obnox.git] / source4 / scripting / bin / samba_spnupdate
index 10da1d917b651bbda47bae6f8427dfdb9a87b8cf..52a51d8b81ceda46e18bae1690346fa96c0660ee 100755 (executable)
@@ -190,7 +190,7 @@ def call_rodc_update(d):
 
     net = Net(creds=creds, lp=lp)
     try:
-        cldap_ret = net.finddc(domainnbt.NBT_SERVER_DS | nbt.NBT_SERVER_WRITABLE)
+        cldap_ret = net.finddc(domain=domain, flags=nbt.NBT_SERVER_DS | nbt.NBT_SERVER_WRITABLE)
     except Exception, reason:
         print("Unable to find writeable DC for domain '%s' to send DRS writeSPN to : %s" % (domain, reason))
         sys.exit(1)