mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
samba-tools: more reasonable defaults for samba-tool commands
- fallback to machine account where possible - default to local hostname where this is reasonable
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user