From fa39e025ff009b3d117f210cc33930629c5c547f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 25 Aug 2014 19:41:14 +0200 Subject: testprogs: use texpect in passwords test file instead of rkpty. Guenther Pair-Programmed-With: Andreas Schneider Signed-off-by: Guenther Deschner Reviewed-by: Andrew Bartlet --- testprogs/blackbox/test_passwords.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/testprogs/blackbox/test_passwords.sh b/testprogs/blackbox/test_passwords.sh index 00a88b3a94..650685de2f 100755 --- a/testprogs/blackbox/test_passwords.sh +++ b/testprogs/blackbox/test_passwords.sh @@ -28,7 +28,7 @@ fi samba_tool="$samba4bindir/samba-tool" smbpasswd="$samba4bindir/smbpasswd" -rkpty="$samba4bindir/rkpty" +texpect="$samba4bindir/texpect" samba4kpasswd=kpasswd if test -x $BINDIR/samba4kpasswd; then samba4kpasswd=$BINDIR/samba4kpasswd @@ -120,7 +120,7 @@ NEWUSERPASS=testPaSS@02% #expect password mismatch #EOF # -#testit "change user password with kpasswd" $rkpty ./tmpkpasswdscript $samba4kpasswd nettestuser@$REALM || failed=`expr $failed + 1` +#testit "change user password with kpasswd" $texpect ./tmpkpasswdscript $samba4kpasswd nettestuser@$REALM || failed=`expr $failed + 1` echo "check that a weak password is rejected" @@ -134,7 +134,7 @@ send ${WEAKPASS}\n expect Password does not meet complexity requirements EOF -testit "change to weak user password with kpasswd" $rkpty ./tmpkpasswdscript $samba4kpasswd nettestuser@$REALM || failed=`expr $failed + 1` +testit "change to weak user password with kpasswd" $texpect ./tmpkpasswdscript $samba4kpasswd nettestuser@$REALM || failed=`expr $failed + 1` echo "check that a short password is rejected" cat > ./tmpkpasswdscript <