samba-tools: more reasonable defaults for samba-tool commands
commit545932fda590d4c888c0f60fed7a36c1659f0018
authorAndrew Tridgell <tridge@samba.org>
Tue, 7 Dec 2010 21:20:54 +0000 (8 08:20 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 8 Dec 2010 04:26:05 +0000 (8 05:26 +0100)
tree18bd10e6237e1c2489f25b4527cbd5bb260381ef
parent249afc8906bc33ed1e23f50f5c28a8ba0b8354c9
samba-tools: more reasonable defaults for samba-tool commands

- fallback to machine account where possible

- default to local hostname where this is reasonable
13 files changed:
source4/scripting/python/samba/getopt.py
source4/scripting/python/samba/netcmd/common.py [new file with mode: 0644]
source4/scripting/python/samba/netcmd/domainlevel.py
source4/scripting/python/samba/netcmd/drs.py
source4/scripting/python/samba/netcmd/enableaccount.py
source4/scripting/python/samba/netcmd/fsmo.py
source4/scripting/python/samba/netcmd/gpo.py
source4/scripting/python/samba/netcmd/group.py
source4/scripting/python/samba/netcmd/ldapcmp.py
source4/scripting/python/samba/netcmd/machinepw.py
source4/scripting/python/samba/netcmd/rodc.py
source4/scripting/python/samba/netcmd/time.py
source4/scripting/python/samba/netcmd/user.py