diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-09-26 10:19:18 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-10-11 08:32:10 +0200 |
commit | 48b979c4fec39c8d3b9684b4a759715c0f93e9cc (patch) | |
tree | 07d9c8f6bc9e0e3c338b4918a9a3e1f9545f3477 /python/samba/upgradehelpers.py | |
parent | a2d45cf49e4976d55261d01df955e412ac7fa73f (diff) | |
download | samba-48b979c4fec39c8d3b9684b4a759715c0f93e9cc.tar.gz samba-48b979c4fec39c8d3b9684b4a759715c0f93e9cc.tar.bz2 samba-48b979c4fec39c8d3b9684b4a759715c0f93e9cc.zip |
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>
Diffstat (limited to 'python/samba/upgradehelpers.py')
-rw-r--r-- | python/samba/upgradehelpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/upgradehelpers.py b/python/samba/upgradehelpers.py index 04f1e82e61..b6750eb430 100644 --- a/python/samba/upgradehelpers.py +++ b/python/samba/upgradehelpers.py @@ -225,7 +225,7 @@ def update_policyids(names, samdb): names.policyid_dc = None -def newprovision(names, creds, session, smbconf, provdir, logger): +def newprovision(names, session, smbconf, provdir, logger): """Create a new provision. This provision will be the reference for knowing what has changed in the @@ -242,7 +242,7 @@ def newprovision(names, creds, session, smbconf, provdir, logger): shutil.rmtree(provdir) os.mkdir(provdir) logger.info("Provision stored in %s", provdir) - return provision(logger, session, creds, smbconf=smbconf, + return provision(logger, session, smbconf=smbconf, targetdir=provdir, samdb_fill=FILL_FULL, realm=names.realm, domain=names.domain, domainguid=names.domainguid, domainsid=str(names.domainsid), ntdsguid=names.ntdsguid, |