summaryrefslogtreecommitdiff
path: root/testprogs/blackbox/bogus.sh
blob: 019957bf70f45ce4b4f00383e8bb2c43ba2149b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ $# -lt 1 ]; then
cat <<EOF
Usage: blackbox_newuser.sh PREFIX
EOF
exit 1;
fi

. `dirname $0`/subunit.sh

SERVER=$1
SHARE=$2
USER=$3
PWD=$4
smbclient="$BINDIR/smbclient"
testit_expect_failure "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$USER%$PWD -c "dir"&& failed=`expr $failed + 1`
./bin/net rpc user add $USER $PWD -W $SERVER -U$USER%$PWD -S $SERVER
testit "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$USER%$PWD -c "dir"|| failed=`expr $failed + 1`
exit $failed