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>
45 jobs for jstephen_mit_test_kerberos_fix in 339 minutes and 5 seconds (queued for 2 seconds)
latest
Status Name Job ID Coverage
  Build
passed build_ctdb #118160046
docker shared

00:42:46

passed build_others #118160051
docker shared

00:13:41

passed build_samba #118627171
private docker

03:21:57

passed build_samba_ad_dc #118354522
private docker

01:04:48

passed build_samba_ad_dc_2 #118160037
docker shared

00:39:43

passed build_samba_ad_dc_2_py3 #118160038
docker shared

00:28:34

passed build_samba_ad_dc_py3 #118354523
private docker

00:16:09

passed build_samba_buildpy3_only #118160052
docker shared

00:28:33

passed build_samba_ctdb #118160048
docker shared

00:20:19

passed build_samba_fileserver #118354520
private docker

00:18:13

passed build_samba_libs #118160040
docker shared

00:33:00

passed build_samba_libs_py3 #118160043
docker shared

00:31:52

passed build_samba_none_env #118160025
docker shared

00:47:56

passed build_samba_nopython #118160027
docker shared

00:27:51

passed build_samba_nt4 #118354518
private docker

00:33:41

passed build_samba_nt4_py3 #118354519
private docker

00:10:40

passed build_samba_o3 #118160034
docker shared

00:33:26

passed build_samba_purepy3-none_env #118160053
docker shared

01:11:59

passed build_samba_py3 #118354517
private docker

00:59:36

passed build_samba_static #118160044
docker shared

00:44:13

passed build_samba_systemkrb5 #118160030
docker shared

00:15:25

passed build_samba_xc #118160031
docker shared

00:06:34

failed build_samba #118560013
docker private

02:06:18

failed build_samba #118354516
private docker

02:36:14

failed build_samba #118232488
docker private

01:22:53

failed build_samba #118203143
private docker

01:22:58

failed build_samba #118160054
docker private

01:23:05

failed build_samba_ad_dc #118232493
docker private

01:22:58

failed build_samba_ad_dc #118203148
private docker

01:22:56

failed build_samba_ad_dc #118160065
docker private

01:22:59

failed build_samba_ad_dc_py3 #118232495
docker private

01:22:58

failed build_samba_ad_dc_py3 #118203149
private docker

01:22:59

failed build_samba_ad_dc_py3 #118160066
docker private

01:22:58

failed build_samba_fileserver #118232492
docker private

01:22:59

failed build_samba_fileserver #118203147
private docker

01:22:57

failed build_samba_fileserver #118160062
docker private

01:22:58

failed build_samba_nt4 #118232490
docker private

01:22:58

failed build_samba_nt4 #118203145
private docker

01:22:56

failed build_samba_nt4 #118160060
docker private

01:22:58

failed build_samba_nt4_py3 #118232491
docker private

01:22:59

failed build_samba_nt4_py3 #118203146
private docker

01:22:56

failed build_samba_nt4_py3 #118160061
docker private

01:22:58

failed build_samba_py3 #118232489
docker private

01:22:57

failed build_samba_py3 #118203144
private docker

01:22:59

failed build_samba_py3 #118160057
docker private

01:22:59