725466150cf5b40e9e24c024086590c2e1d328a3
[kai/samba-autobuild/.git] / source4 / setup / tests / blackbox_setpassword.sh
1 #!/bin/sh
2
3 if [ $# -lt 2 ]; then
4 cat <<EOF
5 Usage: blackbox_setpassword.sh PREFIX CONFIGURATION
6 EOF
7 exit 1;
8 fi
9
10 PREFIX="$1"
11 CONFIGURATION="$2"
12 shift 2
13
14 . `dirname $0`/../../../testprogs/blackbox/subunit.sh
15
16 testit "simple-dc" $PYTHON ./setup/provision $CONFIGURATION --server-role="dc" --domain=FOO --realm=foo.example.com --domain-sid=S-1-5-21-4177067393-1453636373-93818738 --targetdir=$PREFIX/simple-dc
17
18 testit "newuser" $PYTHON ./setup/newuser --configfile=$PREFIX/simple-dc/etc/smb.conf testuser testpass
19
20 testit "setpassword" $PYTHON ./setup/setpassword --configfile=$PREFIX/simple-dc/etc/smb.conf testuser --newpassword=testpass
21
22 exit $failed