From: Aaron Haslett Date: Tue, 1 May 2018 03:54:07 +0000 (+1200) Subject: devel: removing unused code from chgkrbtgtpass X-Git-Tag: ldb-1.4.0~275 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77ea31bccfc63980cd112c87b2aaf7eb7b5cf549;p=thirdparty%2Fsamba.git devel: removing unused code from chgkrbtgtpass Signed-off-by: Aaron Haslett Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Sat May 12 12:05:31 CEST 2018 on sn-devel-144 --- diff --git a/python/samba/upgradehelpers.py b/python/samba/upgradehelpers.py index d4f69445234..14fe3e024c3 100644 --- a/python/samba/upgradehelpers.py +++ b/python/samba/upgradehelpers.py @@ -645,11 +645,10 @@ def update_dns_account_password(samdb, secrets_ldb, names): secrets_ldb.modify(msg) -def update_krbtgt_account_password(samdb, names): +def update_krbtgt_account_password(samdb): """Update (change) the password of the krbtgt account - :param samdb: An LDB object related to the sam.ldb file of a given provision - :param names: List of key provision parameters""" + :param samdb: An LDB object related to the sam.ldb file of a given provision""" expression = "samAccountName=krbtgt" res = samdb.search(expression=expression, attrs=[]) diff --git a/source4/scripting/devel/chgkrbtgtpass b/source4/scripting/devel/chgkrbtgtpass index 7e4f9fb791c..12be1bc3bb1 100644 --- a/source4/scripting/devel/chgkrbtgtpass +++ b/source4/scripting/devel/chgkrbtgtpass @@ -56,8 +56,5 @@ session = system_session() ldbs = get_ldbs(paths, creds, session, lp) ldbs.startTransactions() -names = find_provision_key_parameters(ldbs.sam, ldbs.secrets, ldbs.idmap, - paths, smbconf, lp) - -update_krbtgt_account_password(ldbs.sam, names) +update_krbtgt_account_password(ldbs.sam) ldbs.groupedCommit()