diff options
author | Ralph Boehme <slow@samba.org> | 2021-01-25 11:47:45 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-01-27 16:00:06 +0000 |
commit | 4c9cf755eb2a9e9e257265c5bbef6113e7b2e8e3 (patch) | |
tree | 686f30fdec3f619073689681a9271055cee32756 | |
parent | d5a696fc8869b9ce65f063ce93b04d07b01c2b2a (diff) | |
download | samba-4c9cf755eb2a9e9e257265c5bbef6113e7b2e8e3.tar.gz |
selftest: add force_user_error_inject share in maptoguest env
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14617
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f3f8fdfbf10f690bc8d972a13d6f74f1fb0fb375)
-rwxr-xr-x | selftest/target/Samba3.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index b3f0bca0110..b0910433940 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1766,12 +1766,22 @@ $ret->{USERNAME} = KTEST\\Administrator sub setup_maptoguest { my ($self, $path) = @_; + my $prefix_abs = abs_path($path); + my $libdir="$prefix_abs/lib"; + my $share_dir="$prefix_abs/share"; + my $errorinjectconf="$libdir/error_inject.conf"; print "PROVISIONING maptoguest..."; my $options = " map to guest = bad user ntlm auth = yes + +[force_user_error_inject] + path = $share_dir + vfs objects = acl_xattr fake_acls xattr_tdb error_inject + force user = user1 + include = $errorinjectconf "; my $vars = $self->provision( |