From 48b979c4fec39c8d3b9684b4a759715c0f93e9cc Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 26 Sep 2013 10:19:18 -0700 Subject: 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 Signed-off-by: Stefan Metzmacher Reviewed-by: Stefan Metzmacher --- python/samba/upgradehelpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/samba/upgradehelpers.py') 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, -- cgit