mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
provision: Remove --username and --password options from samba-tool domain provision
This avoids confusion, because the LDAP backend does not use these, and they do not set the password for the administrator account either! This may break support for the 'existing' backend LDAP backend, but that is nothing more than a stub for future development anyway, and new work in this area should use EXTERNAL in any case. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
a2d45cf49e
commit
48b979c4fe
@ -144,7 +144,6 @@ class cmd_domain_provision(Command):
|
||||
takes_optiongroups = {
|
||||
"sambaopts": options.SambaOptions,
|
||||
"versionopts": options.VersionOptions,
|
||||
"credopts": options.CredentialsOptions,
|
||||
}
|
||||
|
||||
takes_options = [
|
||||
@ -231,7 +230,7 @@ class cmd_domain_provision(Command):
|
||||
|
||||
takes_args = []
|
||||
|
||||
def run(self, sambaopts=None, credopts=None, versionopts=None,
|
||||
def run(self, sambaopts=None, versionopts=None,
|
||||
interactive=None,
|
||||
domain=None,
|
||||
domain_guid=None,
|
||||
@ -278,10 +277,6 @@ class cmd_domain_provision(Command):
|
||||
lp = sambaopts.get_loadparm()
|
||||
smbconf = lp.configfile
|
||||
|
||||
creds = credopts.get_credentials(lp)
|
||||
|
||||
creds.set_kerberos_state(DONT_USE_KERBEROS)
|
||||
|
||||
if dns_forwarder is not None:
|
||||
suggested_forwarder = dns_forwarder
|
||||
else:
|
||||
@ -408,7 +403,7 @@ class cmd_domain_provision(Command):
|
||||
session = system_session()
|
||||
try:
|
||||
result = provision(self.logger,
|
||||
session, creds, smbconf=smbconf, targetdir=targetdir,
|
||||
session, smbconf=smbconf, targetdir=targetdir,
|
||||
samdb_fill=samdb_fill, realm=realm, domain=domain,
|
||||
domainguid=domain_guid, domainsid=domain_sid,
|
||||
hostname=host_name,
|
||||
|
Reference in New Issue
Block a user