diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-22 22:26:06 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-26 10:34:58 +0100 |
commit | 179bf9b51c9de5f9f8e78893bd20b9821e39e7e4 (patch) | |
tree | 59721053b3f28f14f9fcbe8ac6b8a293cd034652 /source4/scripting/bin | |
parent | dec1435a42e16269d1e343707e924256ee8a5050 (diff) | |
download | samba-179bf9b51c9de5f9f8e78893bd20b9821e39e7e4.tar.gz samba-179bf9b51c9de5f9f8e78893bd20b9821e39e7e4.tar.bz2 samba-179bf9b51c9de5f9f8e78893bd20b9821e39e7e4.zip |
s4:libnet/py_net.c: "py_net_finddc" - add an "address" parameter
This is useful for a new "samba-tool domain info" command.
Patch inspired by Matthieu Patou.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-x | source4/scripting/bin/samba_spnupdate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate index 10da1d917b..52a51d8b81 100755 --- a/source4/scripting/bin/samba_spnupdate +++ b/source4/scripting/bin/samba_spnupdate @@ -190,7 +190,7 @@ def call_rodc_update(d): net = Net(creds=creds, lp=lp) try: - cldap_ret = net.finddc(domain, nbt.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) |