]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix uxsuccess test with new MIT krb5 library 1.18
authorIsaac Boukris <iboukris@gmail.com>
Thu, 16 Jan 2020 20:36:24 +0000 (21:36 +0100)
committerIsaac Boukris <iboukris@sn-devel-184>
Tue, 10 Mar 2020 13:02:27 +0000 (13:02 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14155

Signed-off-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
selftest/knownfail_mit_krb5_pre_1_18 [moved from selftest/knownfail.d/kinit_mit with 100% similarity]
selftest/wscript
testprogs/blackbox/test_kinit_mit.sh
wscript_configure_system_mitkrb5

index 4d03eb76842351239f2769ba2caa2670b5f355cb..501a5df58240e69bed5516ade3d36c6aea31899e 100644 (file)
@@ -142,6 +142,9 @@ def cmd_testonly(opt):
                         '--flapping=${srcdir}/selftest/flapping '
                         '--flapping=${srcdir}/selftest/flapping.d')
 
+    if CONFIG_GET(opt, 'HAVE_MIT_KRB5_PRE_1_18'):
+        env.FILTER_XFAIL += ' --expected-failures=${srcdir}/selftest/knownfail_mit_krb5_pre_1_18'
+
     if Options.options.FAIL_IMMEDIATELY:
         env.FILTER_XFAIL += ' --fail-immediately'
 
index d28caecd603662345c0477adf1ee8626c113ebe0..61029a5e04ca63b217f82f0a61ca76dedf094303 100755 (executable)
@@ -134,10 +134,6 @@ testit "enable user with kerberos cache" $VALGRIND $PYTHON $samba_enableaccount
 ### Test kinit with canonicalization
 ###########################################################
 
-# This is currently not working due to an upstream bug in MIT Kerberos. The
-# test will ensure that we get notified when we can turn on canonicalization
-# in ads_krb5_chg_password().
-# https://bugzilla.samba.org/show_bug.cgi?id=14155
 upperusername=$(echo $USERNAME | tr '[a-z]' '[A-Z]')
 testit "kinit with canonicalize" $samba_texpect $PREFIX/tmpkinitscript $samba_kinit -C $upperusername@$REALM -S kadmin/changepw@$REALM || failed=`expr $failed + 1`
 
index b14881f094c6706ac7bf01c5fa50d45b3f4b65f6..b0bf2a8b40db66110a0c4fad3d2fdbc6ef1f65ea 100644 (file)
@@ -77,6 +77,9 @@ if conf.env.KRB5_CONFIG:
     else:
         Logs.info('MIT Kerberos %s detected, MIT krb5 build can proceed' % (krb5_version))
 
+    if parse_version(krb5_version) < parse_version('1.18'):
+        conf.DEFINE('HAVE_MIT_KRB5_PRE_1_18', 1)
+
 conf.CHECK_CFG(args="--cflags --libs", package="com_err", uselib_store="com_err")
 conf.CHECK_FUNCS_IN('_et_list', 'com_err')
 conf.CHECK_HEADERS('com_err.h', lib='com_err')