mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
c44dad3ac2
commit
f3f8fdfbf1
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user