mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
auth: keytab invalidation fix
chgtdcpass should add a new DC password and delete the old ones but the bug exposed by this test causes the tool to remove only a single record from the old entries, leaving the old passwords functional. Since the tool is used by administrators who may have disclosed their domain join password and want to invalidate it, this is a security concern. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13415 Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue May 15 15:45:08 CEST 2018 on sn-devel-144
This commit is contained in:
parent
a3d6fdd535
commit
8bd67c593d
@ -1 +0,0 @@
|
||||
^samba.unittests.kerberos.test_krb5_remove_obsolete_keytab_entries_many
|
@ -633,7 +633,7 @@ krb5_error_code smb_krb5_remove_obsolete_keytab_entries(TALLOC_CTX *mem_ctx,
|
||||
krb5_kt_free_entry(context, &entry);
|
||||
/* Make sure we do not double free */
|
||||
ZERO_STRUCT(entry);
|
||||
} while (code != 0);
|
||||
} while (code == 0);
|
||||
|
||||
krb5_kt_end_seq_get(context, keytab, &cursor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user