mirror of
https://github.com/samba-team/samba.git
synced 2025-07-09 20:59: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:
@ -770,7 +770,7 @@ class cmd_ldapcmp(Command):
|
||||
two=False, quiet=False, verbose=False, descriptor=False, view="section",
|
||||
credopts=None, sambaopts=None, versionopts=None):
|
||||
lp = sambaopts.get_loadparm()
|
||||
creds = credopts.get_credentials(lp)
|
||||
creds = credopts.get_credentials(lp, fallback_machine=True)
|
||||
creds2 = credopts.get_credentials2(lp, False)
|
||||
if creds2.is_anonymous():
|
||||
creds2 = creds
|
||||
|
Reference in New Issue
Block a user