s4:winsserver: reject name registrations with a scope length > 237
[Samba/nascimento.git] / source4 / setup / tests / blackbox_newuser.sh
blob30e6830be5b5552252873036ec2db2bd004d18ce
1 #!/bin/sh
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: blackbox_newuser.sh PREFIX
6 EOF
7 exit 1;
8 fi
10 PREFIX="$1"
11 shift 1
13 . `dirname $0`/../../../testprogs/blackbox/subunit.sh
16 testit "simple-dc" $PYTHON ./setup/provision --server-role="dc" --domain=FOO --realm=foo.example.com --domain-sid=S-1-5-21-4177067393-1453636373-93818738 --targetdir=$PREFIX/simple-dc
17 net="./bin/net"
19 CONFIG="--configfile=$PREFIX/simple-dc/etc/smb.conf"
21 testit "newuser" $net newuser $CONFIG testuser testpass
23 # check the enable account script
24 testit "enableaccount" $net enableaccount $CONFIG testuser
26 # check the enable account script
27 testit "setpassword" $net setpassword $CONFIG testuser --newpassword=testpass2
29 # check the setexpiry script
30 testit "noexpiry" $net setexpiry $CONFIG testuser --noexpiry
31 testit "expiry" $net setexpiry $CONFIG testuser --days=7
33 exit $failed