IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
"ls""$SMB_UNC" -k no -U$TEST_PRINCIPAL%$TEST_PASSWORD||failed=`expr $failed + 1`
testit "set password on user locally"$VALGRIND$samba_tool user setpassword $TEST_USERNAME$CONFIG --newpassword=$TEST_PASSWORD_NEW --must-change-at-next-login ||failed=`expr $failed + 1`
TEST_PASSWORD=$TEST_PASSWORD_NEW
TEST_PASSWORD_NEW="testPaSS@04%"
test_smbclient_expect_failure "Test login with user (NT_STATUS_PASSWORD_MUST_CHANGE)"\
"ls""$SMB_UNC" -k no -U$TEST_PRINCIPAL%$TEST_PASSWORD&&failed=`expr $failed + 1`
testit "change user password with 'samba-tool user password' (after must change flag set)"\
$VALGRIND$samba_tool user password -W$DOMAIN -U$DOMAIN/$TEST_USERNAME%$TEST_PASSWORD -k no --newpassword=$TEST_PASSWORD_NEW||failed=`expr $failed + 1`
TEST_PASSWORD=$TEST_PASSWORD_NEW
TEST_PASSWORD_NEW="testPaSS@05%"
test_smbclient "Test login with user kerberos"'ls'"$SMB_UNC" -k yes -U$TEST_PRINCIPAL%$TEST_PASSWORD||failed=`expr $failed + 1`
cat > $PREFIX/tmpsmbpasswdscript <<EOF
expect Old SMB password:
password ${TEST_PASSWORD}\n
expect New SMB password:
send ${TEST_PASSWORD_NEW}\n
expect Retype new SMB password:
send ${TEST_PASSWORD_NEW}\n
EOF
testit "change user password with smbpasswd (after must change flag set)"\
testit_expect_failure "try to set a non-complex password (command should not succeed)"\
$VALGRIND$samba_tool user password -W$DOMAIN"-U$DOMAIN/$TEST_USERNAME%$TEST_PASSWORD" -k no --newpassword="$TEST_PASSWORD_WEAK"&&failed=`expr $failed + 1`
testit "try to set a non-complex password (command should succeed)"\
$VALGRIND$samba_tool user password -W$DOMAIN"-U$DOMAIN/$TEST_USERNAME%$TEST_PASSWORD" -k no --newpassword="$TEST_PASSWORD_WEAK"||failed=`expr $failed + 1`
TEST_PASSWORD=$TEST_PASSWORD_WEAK
test_smbclient "test login with non-complex password"\
"ls""$SMB_UNC" -k no -U$TEST_PRINCIPAL%$TEST_PASSWORD||failed=`expr $failed + 1`
testit_expect_failure "try to set a short password (command should not succeed)"\
$VALGRIND$samba_tool user password -W$DOMAIN"-U$DOMAIN/$TEST_USERNAME%$TEST_PASSWORD" -k no --newpassword="$TEST_PASSWORD_SHORT"&&failed=`expr $failed + 1`
testit "try to set a short password (command should succeed)"\
$VALGRIND$samba_tool user password -W$DOMAIN"-U$DOMAIN/$TEST_USERNAME%$TEST_PASSWORD" -k no --newpassword="$TEST_PASSWORD_SHORT"||failed=`expr $failed + 1`
$VALGRIND$samba_tool domain passwordsettings $CONFIG show ||failed=`expr $failed + 1`
testit_expect_failure "try to change password too quickly (command should not succeed)"\
$VALGRIND$samba_tool user password -W$DOMAIN"-U$DOMAIN/$TEST_USERNAME%$TEST_PASSWORD" -k no --newpassword="$TEST_PASSWORD_NEW"&&failed=`expr $failed + 1`