summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-03 15:52:00 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-03 16:08:24 +0200
commit518232d4578d700f5f5ea1609275a6cd1de3a1e7 (patch)
tree0e4a092a27b5cd45e122c6a2bb83edf3b7940d2c
parentf41d9eb8dc5cf63625260ce577548b0471fc84c8 (diff)
downloadsamba-518232d4578d700f5f5ea1609275a6cd1de3a1e7.tar.gz
samba-518232d4578d700f5f5ea1609275a6cd1de3a1e7.tar.bz2
samba-518232d4578d700f5f5ea1609275a6cd1de3a1e7.zip
s4:kinit blackbox test - set/reset also here the "minPwdAge"
-rwxr-xr-xtestprogs/blackbox/test_kinit.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/testprogs/blackbox/test_kinit.sh b/testprogs/blackbox/test_kinit.sh
index 0373452042..a32d167cfe 100755
--- a/testprogs/blackbox/test_kinit.sh
+++ b/testprogs/blackbox/test_kinit.sh
@@ -51,9 +51,14 @@ test_smbclient() {
enctype="-e $ENCTYPE"
+PWSETCONFIG="-H ldap://$SERVER -U$USERNAME%$PASSWORD"
+export PWSETCONFIG
+
KRB5CCNAME="$PREFIX/tmpccache"
export KRB5CCNAME
+testit "reset password policies beside of minimum password age of 0 days" $VALGRIND $net pwsettings $PWSETCONFIG set --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=0 --max-pwd-age=default || failed=`expr $failed + 1`
+
echo $PASSWORD > ./tmppassfile
#testit "kinit with keytab" $samba4kinit $enctype --keytab=$PREFIX/dc/private/secrets.keytab $SERVER\$@$REALM || failed=`expr $failed + 1`
testit "kinit with password" $samba4kinit $enctype --password-file=./tmppassfile --request-pac $USERNAME@$REALM || failed=`expr $failed + 1`
@@ -165,5 +170,7 @@ rm -f $KRB5CCNAME
testit "kinit with machineaccountccache script" $machineaccountccache $CONFIGURATTION $KRB5CCNAME || failed=`expr $failed + 1`
test_smbclient "Test machine account login with kerberos ccache" 'ls' -k yes || failed=`expr $failed + 1`
+testit "reset password policies" $VALGRIND $net pwsettings $PWSETCONFIG set --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=default --max-pwd-age=default || failed=`expr $failed + 1`
+
rm -f $PREFIX/tmpccache tmpccfile tmppassfile tmpuserpassfile tmpuserccache tmpkpasswdscript
exit $failed