s3-krb5: Limit search for old kvno to 8bits
authorChristof Schmitt <cs@samba.org>
Tue, 6 May 2014 23:48:07 +0000 (16:48 -0700)
committerChristof Schmitt <cs@samba.org>
Wed, 7 May 2014 22:54:15 +0000 (00:54 +0200)
commita5b96ee5fb97528767fc63aa8e70a314686ee38a
treed6b87ac5ee15dd695b75b08e637b559a4239779a
parent7736c9693502e0359634ace325957a468a32dac3
s3-krb5: Limit search for old kvno to 8bits

Some keytab files store the kvno only in 8bits. Limit the compare to
8bits, so that we don't miss old keys and delete them. This fixes the
problem that updates to the keytab file removed all previous keys.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Thu May  8 00:54:15 CEST 2014 on sn-devel-104
source3/libads/kerberos_keytab.c