source: branches/samba-3.5.x/source4/setup/tests/blackbox_newuser.sh

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 890 bytes
Line 
1#!/bin/sh
2
3if [ $# -lt 1 ]; then
4cat <<EOF
5Usage: blackbox_newuser.sh PREFIX
6EOF
7exit 1;
8fi
9
10PREFIX="$1"
11shift 1
12
13. `dirname $0`/../../../testprogs/blackbox/subunit.sh
14
15
16testit "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
18CONFIG="--configfile=$PREFIX/simple-dc/etc/smb.conf"
19
20testit "newuser" $PYTHON ./setup/newuser $CONFIG testuser testpass
21
22# check the enable account script
23testit "enableaccount" $PYTHON ./setup/enableaccount $CONFIG testuser
24
25# check the enable account script
26testit "setpassword" $PYTHON ./setup/setpassword $CONFIG testuser --newpassword=testpass2
27
28# check the setexpiry script
29testit "noexpiry" $PYTHON ./setup/setexpiry $CONFIG testuser --noexpiry
30testit "expiry" $PYTHON ./setup/setexpiry $CONFIG testuser --days=7
31
32exit $failed
Note: See TracBrowser for help on using the repository browser.