mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +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:
@ -77,11 +77,7 @@ class cmd_rodc_preload(Command):
|
||||
|
||||
lp = sambaopts.get_loadparm()
|
||||
|
||||
creds = credopts.get_credentials(lp)
|
||||
if not creds.authentication_requested():
|
||||
print "Using machine account"
|
||||
creds.set_machine_account(lp)
|
||||
|
||||
creds = credopts.get_credentials(lp, fallback_machine=True)
|
||||
|
||||
# connect to the remote and local SAMs
|
||||
samdb = SamDB(url="ldap://%s" % server,
|
||||
|
Reference in New Issue
Block a user