Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat May 12 12:05:31 CEST 2018 on sn-devel-144
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=[])
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()