auth: keytab invalidation fix
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Mon, 30 Apr 2018 23:10:50 +0000 (11:10 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 May 2018 13:45:08 +0000 (15:45 +0200)
commit8bd67c593da5525a63a1d596e2c7fe38bc7cee57
treeb80106d736b5b191b29147543d0a42ce38d1d5d3
parenta3d6fdd5355d366f3d23915cecc10c6f039daa44
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
selftest/knownfail.d/keytab
source4/auth/kerberos/kerberos_util.c