summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/time.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-23 19:51:36 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-25 10:38:45 -0700
commitc53210bf0609de982d0b36f76198defc8a4502da (patch)
tree9741ba4b9f9f173a075c16e0359f4c6994a9f5f1 /source4/scripting/python/samba/netcmd/time.py
parent3d7a4cf5b68a1adcc4b7b53819ffc0c580e92da0 (diff)
downloadsamba-c53210bf0609de982d0b36f76198defc8a4502da.tar.gz
samba-c53210bf0609de982d0b36f76198defc8a4502da.tar.bz2
samba-c53210bf0609de982d0b36f76198defc8a4502da.zip
s4-net: added --ipaddress option to net commands
this allows override of server IP address, bypassing NBT or DNS name resolution of DCs Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/scripting/python/samba/netcmd/time.py')
-rw-r--r--source4/scripting/python/samba/netcmd/time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/time.py b/source4/scripting/python/samba/netcmd/time.py
index 0286f9d1003..0856873f392 100644
--- a/source4/scripting/python/samba/netcmd/time.py
+++ b/source4/scripting/python/samba/netcmd/time.py
@@ -41,5 +41,5 @@ class cmd_time(Command):
def run(self, server_name, credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)
- net = Net(creds, lp)
+ net = Net(creds, lp, server=credopts.ipaddress)
print net.time(server_name)