s4:kdc/db-glue: allow principals in form of computer@EXAMPLE.COM
[Samba.git] / source3 / script / tests / test_net_rpc_join.sh
bloba7810a98b6cc0d39571761912f233951d319838b
1 #!/bin/sh
3 if [ $# -lt 4 ]; then
4 cat <<EOF
5 Usage: test_net_rpc_join.sh USERNAME PASSWORD SERVER PREFIX
6 EOF
7 exit 1;
8 fi
10 USERNAME="$1"
11 PASSWORD="$2"
12 SERVER="$3"
13 PREFIX="$4"
14 shift 4
15 ADDARGS="$*"
17 incdir=`dirname $0`/../../../testprogs/blackbox
18 . $incdir/subunit.sh
19 mkdir -p $PREFIX/private
20 testit "net_rpc_join" $VALGRIND $BINDIR/net rpc join -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private -U$USERNAME%$PASSWORD $ADDARGS || failed=`expr $failed + 1`
21 testit "net_rpc_testjoin" $VALGRIND $BINDIR/net rpc testjoin -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private $ADDARGS || failed=`expr $failed + 1`
22 testit "net_rpc_changetrustpw" $VALGRIND $BINDIR/net rpc changetrustpw -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private $ADDARGS || failed=`expr $failed + 1`
23 testit "net_rpc_testjoin2" $VALGRIND $BINDIR/net rpc testjoin -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private $ADDARGS || failed=`expr $failed + 1`
25 testok $0 $failed