selftest/Samba3: Test smb signing against the member server
authorStefan Metzmacher <metze@samba.org>
Fri, 6 Mar 2009 15:35:34 +0000 (16:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 23 Mar 2009 11:21:14 +0000 (12:21 +0100)
metze

selftest/target/Samba3.pm
source3/selftest/tests.sh

index 78aafa7533acdcc5f810c73dffbc9cdd92f33e92..0b176d601c1bc4b6f094a5c9c7b2a55e3fc93c26 100644 (file)
@@ -144,6 +144,7 @@ sub setup_member($$$)
 
        my $member_options = "
        security = domain
+       server signing = on
 ";
        my $ret = $self->provision($prefix,
                                   "LOCALMEMBER3",
index f88dab033755bf9d967c4dc31ea0d10f8c5b7a8a..ea59f0ee8eab846e5da48fd57cb58ba494b21306 100755 (executable)
@@ -120,6 +120,10 @@ plantest "blackbox.smbclient_s3.plain" dc BINDIR="$BINDIR" script/tests/test_smb
 plantest "blackbox.smbclient_s3.plain member creds" member BINDIR="$BINDIR" script/tests/test_smbclient_s3.sh \$SERVER \$SERVER_IP \$SERVER\\\\\$USERNAME \$PASSWORD
 plantest "blackbox.smbclient_s3.plain domain creds" member BINDIR="$BINDIR" script/tests/test_smbclient_s3.sh \$SERVER \$SERVER_IP \$DOMAIN\\\\\$DC_USERNAME \$DC_PASSWORD
 
+# sign, only the member server allows signing
+plantest "blackbox.smbclient_s3.sign member creds" member BINDIR="$BINDIR" script/tests/test_smbclient_s3.sh \$SERVER \$SERVER_IP \$SERVER\\\\\$USERNAME \$PASSWORD "--signing=required"
+plantest "blackbox.smbclient_s3.sign domain creds" member BINDIR="$BINDIR" script/tests/test_smbclient_s3.sh \$SERVER \$SERVER_IP \$DOMAIN\\\\\$DC_USERNAME \$DC_PASSWORD "--signing=required"
+
 # encrypted
 plantest "blackbox.smbclient_s3.crypt" dc BINDIR="$BINDIR" script/tests/test_smbclient_s3.sh \$SERVER \$SERVER_IP \$USERNAME \$PASSWORD "-e"