#!/bin/sh # Blackbox tests for chainging passwords with kinit and kpasswd # # Copyright (C) 2006-2007 Jelmer Vernooij # Copyright (C) 2006-2008 Andrew Bartlett # Copyright (C) 2016 Andreas Schneider if [ $# -lt 7 ]; then cat <$PREFIX/tmpkpasswdscript <$PREFIX/tmpkpasswdscript <$PREFIX/tmpkpasswdscript < "${PREFIX}/tmpkpasswdscript" < "${KRB5_CONFIG}" testit "MIT kpasswd change user password" \ "${texpect}" "${PREFIX}/tmpkpasswdscript" "${mit_kpasswd}" \ "${TEST_PRINCIPAL}" || failed=$((failed + 1)) KRB5_CONFIG="${SAVE_KRB5_CONFIG}" export KRB5_CONFIG fi TEST_PASSWORD="${TEST_PASSWORD_NEW}" TEST_PASSWORD_NEW="testPaSS@03force%" ########################################################### ### Force password change at login ########################################################### testit "set password on user locally" \ $VALGRIND $PYTHON $samba_tool user setpassword $TEST_USERNAME "${CONFIGURATION}" --newpassword=$TEST_PASSWORD_NEW --must-change-at-next-login || failed=$(expr $failed + 1) TEST_PASSWORD=$TEST_PASSWORD_NEW TEST_PASSWORD_NEW="testPaSS@04%" rm -f $PREFIX/tmpuserccache cat >$PREFIX/tmpkinitscript <