summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/fsmo.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-08 08:20:54 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-08 05:26:05 +0100
commit545932fda590d4c888c0f60fed7a36c1659f0018 (patch)
tree18bd10e6237e1c2489f25b4527cbd5bb260381ef /source4/scripting/python/samba/netcmd/fsmo.py
parent249afc8906bc33ed1e23f50f5c28a8ba0b8354c9 (diff)
downloadsamba-545932fda590d4c888c0f60fed7a36c1659f0018.tar.gz
samba-545932fda590d4c888c0f60fed7a36c1659f0018.tar.bz2
samba-545932fda590d4c888c0f60fed7a36c1659f0018.zip
samba-tools: more reasonable defaults for samba-tool commands
- fallback to machine account where possible - default to local hostname where this is reasonable
Diffstat (limited to 'source4/scripting/python/samba/netcmd/fsmo.py')
-rw-r--r--source4/scripting/python/samba/netcmd/fsmo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/fsmo.py b/source4/scripting/python/samba/netcmd/fsmo.py
index 96e162eb02..0c8d17c74f 100644
--- a/source4/scripting/python/samba/netcmd/fsmo.py
+++ b/source4/scripting/python/samba/netcmd/fsmo.py
@@ -133,7 +133,7 @@ all=all of the above"""),
def run(self, subcommand, force=None, host=None, role=None,
credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm()
- creds = credopts.get_credentials(lp)
+ creds = credopts.get_credentials(lp, fallback_machine=True)
samdb = SamDB(url=host, session_info=system_session(),
credentials=creds, lp=lp)