mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
8b72d4c7bb
commit
77ea31bccf
@ -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=[])
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user