1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

devel: removing unused code from chgkrbtgtpass

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
This commit is contained in:
Aaron Haslett
2018-05-01 15:54:07 +12:00
committed by Andrew Bartlett
parent 8b72d4c7bb
commit 77ea31bccf
2 changed files with 3 additions and 7 deletions

View File

@ -645,11 +645,10 @@ def update_dns_account_password(samdb, secrets_ldb, names):
secrets_ldb.modify(msg) 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 """Update (change) the password of the krbtgt account
:param samdb: An LDB object related to the sam.ldb file of a given provision :param samdb: An LDB object related to the sam.ldb file of a given provision"""
:param names: List of key provision parameters"""
expression = "samAccountName=krbtgt" expression = "samAccountName=krbtgt"
res = samdb.search(expression=expression, attrs=[]) res = samdb.search(expression=expression, attrs=[])

View File

@ -56,8 +56,5 @@ session = system_session()
ldbs = get_ldbs(paths, creds, session, lp) ldbs = get_ldbs(paths, creds, session, lp)
ldbs.startTransactions() ldbs.startTransactions()
names = find_provision_key_parameters(ldbs.sam, ldbs.secrets, ldbs.idmap, update_krbtgt_account_password(ldbs.sam)
paths, smbconf, lp)
update_krbtgt_account_password(ldbs.sam, names)
ldbs.groupedCommit() ldbs.groupedCommit()