pidl:Wireshark Fix the type of array of pointerse to hf_ values
[Samba.git] / testprogs / blackbox / bogus.sh
blob2fa110796c7ba9b182b4ffd9be26620875f81b2d
1 #!/bin/sh
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: bogus.sh SERVER SHARE USER PASSWORD DC_USER DC_PASSWORD SMBCLIENT
6 EOF
7 exit 1
8 fi
10 . $(dirname $0)/subunit.sh
12 SERVER=$1
13 SHARE=$2
14 USER=$3
15 PWD=$4
16 DC_USER=$5
17 DC_PWD=$6
18 smbclient=$7
19 shift 7
21 TEST_USER=bogus_testuser
22 TEST_PWD=bogus_pass3#@
23 net="$BINDIR/net"
24 testit_expect_failure "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$DC_USER%$DC_PWD -c "dir" || failed=$(expr $failed + 1)
25 testit "net.user.add" $net rpc user add $TEST_USER $TEST_PWD -W $SERVER -U$SERVER\\$USER%$PWD -S $SERVER
26 testit "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$TEST_USER%$TEST_PWD -c "dir" || failed=$(expr $failed + 1)
27 testit "net.user.delete" $net rpc user delete $TEST_USER -W $SERVER -U$SERVER\\$USER%$PWD -S $SERVER
28 exit $failed