5 Usage: blackbox_newuser.sh PREFIX
13 .
`dirname $0`/subunit.sh
16 samba_tool
="$BUILDDIR/bin/samba-tool"
17 samba4bindir
="$BUILDDIR/bin"
18 samba4srcdir
="$SRCDIR/source4"
19 samba4kinit
="$samba4bindir/samba4kinit$EXEEXT"
20 CONFIG
="--configfile=$PREFIX/dc/etc/smb.conf"
24 testit
"newuser" $samba_tool newuser
$CONFIG $TESTUSER testp@ssw0Rd || failed
=`expr $failed + 1`
26 KRB5CCNAME
="$PREFIX/tmpccache"
28 echo "testp@ssw0Rd" >$PREFIX/tmppassfile
29 testit
"kinit with passwd" $samba4kinit -e arcfour-hmac-md5
--password-file=$PREFIX/tmppassfile
$TESTUSER@SAMBA.EXAMPLE.COM || failed
=`expr $failed + 1`
30 testit
"ktpass" $samba4srcdir/scripting
/bin
/ktpass.sh
--host LOCALDC
--out $PREFIX/testuser.kt
--princ $TESTUSER --pass "testp@ssw0Rd" --path-to-ldbsearch=$BUILDDIR/bin|| failed
=`expr $failed + 1`
34 testit
"kinit with keytab" $samba4kinit -e arcfour-hmac-md5
--use-keytab -t $PREFIX/testuser.kt
$TESTUSER@SAMBA.EXAMPLE.COM || failed
=`expr $failed + 1`
36 rm -f $PREFIX/tmpccache
$PREFIX/testuser.kt