mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:blackbox/test_passwords.sh - perform also here the adaptions for "minPwdAge" != 0
This commit is contained in:
parent
ec9fa906c7
commit
73c69a195a
@ -48,6 +48,8 @@ test_smbclient() {
|
||||
CONFIG="--configfile=$PREFIX/dc/etc/smb.conf"
|
||||
export CONFIG
|
||||
|
||||
testit "reset password policies beside of minimum password age of 0 days" $VALGRIND $net pwsettings $CONFIG set --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=0 --max-pwd-age=default || failed=`expr $failed + 1`
|
||||
|
||||
USERPASS=testPaSS@01%
|
||||
|
||||
testit "create user locally" $VALGRIND $newuser $CONFIG nettestuser $USERPASS $@ || failed=`expr $failed + 1`
|
||||
@ -161,8 +163,6 @@ USERPASS=$NEWUSERPASS
|
||||
|
||||
test_smbclient "Test login with user kerberos" 'ls' -k yes -Unettestuser@$REALM%$NEWUSERPASS || failed=`expr $failed + 1`
|
||||
|
||||
testit "reset password policies" $VALGRIND $net pwsettings set $CONFIG --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=default --max-pwd-age=default || failed=`expr $failed + 1`
|
||||
|
||||
NEWUSERPASS=abcdefg
|
||||
testit_expect_failure "try to set a non-complex password (command should not succeed)" $VALGRIND $net password change -W$DOMAIN "-U$DOMAIN/nettestuser%$USERPASS" -k no "$NEWUSERPASS" $@ && failed=`expr $failed + 1`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user