Last change
on this file was 745, checked in by Silvan Scherrer, 13 years ago |
Samba Server: updated trunk to 3.6.0
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | if [ $# -lt 1 ]; then
|
---|
4 | cat <<EOF
|
---|
5 | Usage: blackbox_group.sh PREFIX
|
---|
6 | EOF
|
---|
7 | exit 1;
|
---|
8 | fi
|
---|
9 |
|
---|
10 | PREFIX="$1"
|
---|
11 | shift 1
|
---|
12 |
|
---|
13 | . `dirname $0`/../../../testprogs/blackbox/subunit.sh
|
---|
14 |
|
---|
15 |
|
---|
16 | samba_tool="./bin/samba-tool"
|
---|
17 |
|
---|
18 | CONFIG="--configfile=$PREFIX/etc/smb.conf"
|
---|
19 |
|
---|
20 | #creation of two test subjects
|
---|
21 | testit "addspn" $samba_tool spn add FOO/bar Administrator $CONFIG
|
---|
22 | testit "delspn" $samba_tool spn delete FOO/bar $CONFIG
|
---|
23 | testit "readdspn" $samba_tool spn add FOO/bar Administrator $CONFIG
|
---|
24 | testit_expect_failure "failexistingspn" $samba_tool spn add FOO/bar Guest $CONFIG
|
---|
25 | testit "existingspnforce" $samba_tool spn add --force FOO/bar Guest $CONFIG
|
---|
26 | testit_expect_failure "faildelspnnotgooduser" $samba_tool spn delete FOO/bar krbtgt $CONFIG
|
---|
27 | testit_expect_failure "faildelspnmoreoneuser" $samba_tool spn delete FOO/bar $CONFIG
|
---|
28 | testit "deluserspn" $samba_tool spn delete FOO/bar Guest $CONFIG
|
---|
29 | testit "dellastuserspn" $samba_tool spn delete FOO/bar $CONFIG
|
---|
30 | testit_expect_failure "faildelspn" $samba_tool spn delete FOO/bar $CONFIG
|
---|
31 | testit_expect_failure "failaddspn" $samba_tool spn add FOO/bar nonexistinguser $CONFIG
|
---|
32 |
|
---|
33 | exit $failed
|
---|
Note:
See
TracBrowser
for help on using the repository browser.