1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

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>
This commit is contained in:
Andreas Schneider 2019-10-09 16:59:59 +02:00 committed by Andreas Schneider
parent 0cad882380
commit 93c2b44675
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
^samba4.blackbox.kinit.kinit.with.canonicalize

View File

@ -130,6 +130,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
###########################################################