]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: disable SMB encryption in simpleserver environment
authorRalph Boehme <slow@samba.org>
Tue, 17 Jan 2017 16:23:51 +0000 (17:23 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 1 Feb 2017 11:53:21 +0000 (12:53 +0100)
Encryption is currently not tested in this env so we can safely turn it
off. The next commit will add a blackbox tests that test combinations of
having encryption globally turned off and enabled (desired/required) on
a share.

This also adds a new share "enc_desired" with "smb encrypt = desired"
which will be used by the test in the next commit.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12520

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 573e8e15b3ed27d6b593e635e9c24eea3fdf4fb9)

selftest/target/Samba3.pm

index 5e62cf12fd65ca5ca65f6288ac9c8e7e78ee0220..17ad820ce2954c6464257bf9de6cedfd673a9ff6 100755 (executable)
@@ -547,6 +547,7 @@ sub setup_simpleserver($$)
        lanman auth = yes
        vfs objects = xattr_tdb streams_depot
        change notify = no
+       smb encrypt = off
 
 [vfs_aio_fork]
        path = $prefix_abs/share
@@ -560,6 +561,11 @@ sub setup_simpleserver($$)
        store dos attributes = yes
        hide files = /hidefile/
        hide dot files = yes
+
+[enc_desired]
+       path = $prefix_abs/share
+       vfs objects =
+       smb encrypt = desired
 ";
 
        my $vars = $self->provision($path,