Test password change with 'net password change'.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Apr 2008 08:40:06 +0000 (10:40 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 Apr 2008 08:40:06 +0000 (10:40 +0200)
Andrew Bartlett

testprogs/blackbox/test_kinit.sh

index dbcdcf11126d193d74e602b04aa0ea1792a818ab..29582055ee0832cfcc1350c4d7ac3b860504a8e6 100755 (executable)
@@ -86,6 +86,14 @@ testit "kinit with user password" $samba4bindir/samba4kinit --password-file=./tm
 
 test_smbclient "Test login with user kerberos ccache" 'ls' -k yes || failed=`expr $failed + 1`
 
+NEWUSERPASS=testPaSS@34%
+testit "change user password" $VALGRIND $net password change -W$DOMAIN -U$DOMAIN\\nettestuser%$USERPASS $CONFIGURATION  -k no $NEWUSERPASS $@ || failed=`expr $failed + 1`
+
+echo $NEWUSERPASS > ./tmpuserpassfile
+testit "kinit with user password" $samba4bindir/samba4kinit --password-file=./tmpuserpassfile --request-pac nettestuser@$REALM   || failed=`expr $failed + 1`
+
+test_smbclient "Test login with user kerberos ccache" 'ls' -k yes || failed=`expr $failed + 1`
+
 KRB5CCNAME="$PREFIX/tmpccache"
 export KRB5CCNAME