summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-10-09 16:59:59 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-10-12 16:18:39 +0000
commit93c2b446755bd89c7ace8c6ee0445a361f8e17ca (patch)
tree786fe3120c7f6775fbe2a791e9c3b5d0a8bc5978 /testprogs
parent0cad882380cc361a4106dc12aeb0582a6dccdd88 (diff)
downloadsamba-93c2b446755bd89c7ace8c6ee0445a361f8e17ca.tar.gz
testprogs: Add test for kinit with canonicalization
Pair-Programmed-With: Isaac Boukris <iboukris@redhat.com> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Isaac Boukris <iboukris@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_kinit_mit.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/testprogs/blackbox/test_kinit_mit.sh b/testprogs/blackbox/test_kinit_mit.sh
index 57d0f74d28d..d28caecd603 100755
--- a/testprogs/blackbox/test_kinit_mit.sh
+++ b/testprogs/blackbox/test_kinit_mit.sh
@@ -131,6 +131,19 @@ testit "set user password with kerberos ccache" $VALGRIND $PYTHON $samba_tool us
testit "enable user with kerberos cache" $VALGRIND $PYTHON $samba_enableaccount nettestuser -H ldap://$SERVER -k yes $@ || failed=`expr $failed + 1`
###########################################################
+### 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`
+
+$samba_kdestroy
+
+###########################################################
### Test kinit with user credentials
###########################################################