s4-auth-tests: Fix test_kerberos with MIT krb
authorJustin Stephenson <jstephen@redhat.com>
Thu, 8 Nov 2018 15:57:48 +0000 (10:57 -0500)
committerAlexander Bokovoy <ab@samba.org>
Sat, 10 Nov 2018 11:48:02 +0000 (12:48 +0100)
commit899d00e6be5af48b93c15beb43f7383eeb8508b1
treebca7121b1f56a06e926dcbc131c4cecc47d971df
parenta979bb28b301d3ecf72b958f8a114d24c5203544
s4-auth-tests: Fix test_kerberos with MIT krb

When a keytab of type MEMORY is used, the MIT kerberos krb5_kt_add_entry()
library function adds a keytab entry to the beginning of the keytab table,
instead of the end.

This adds a MIT kerberos conditional to reverse iterate through
the keytable entries to address this.

Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Sat Nov 10 12:48:02 CET 2018 on sn-devel-144
source4/auth/tests/kerberos.c