mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
selftest: Make the ncalrpc dir common between Samba4 and Samba3.
This also avoids creating the directory, as the startup routines will create it with the correct permissions. Andrew Bartlett
This commit is contained in:
parent
aae9353ecf
commit
f4d9b40d7f
@ -292,7 +292,7 @@ sub setup_plugin_s4_dc($$$$)
|
||||
"plugindc",
|
||||
$iface,
|
||||
"pluGin${iface}Pass",
|
||||
$plugin_s4_dc_options);
|
||||
$plugin_s4_dc_options, 1);
|
||||
|
||||
$ret or return undef;
|
||||
|
||||
@ -634,9 +634,9 @@ sub check_or_start($$$$) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
sub provision($$$$$$)
|
||||
sub provision($$$$$$$)
|
||||
{
|
||||
my ($self, $prefix, $server, $swiface, $password, $extra_options) = @_;
|
||||
my ($self, $prefix, $server, $swiface, $password, $extra_options, $no_delete_prefix) = @_;
|
||||
|
||||
##
|
||||
## setup the various environment variables we need
|
||||
@ -714,7 +714,9 @@ sub provision($$$$$$)
|
||||
|
||||
mkdir($prefix_abs, 0777);
|
||||
print "CREATE TEST ENVIRONMENT IN '$prefix'...";
|
||||
system("rm -rf $prefix_abs/*");
|
||||
if (not defined($no_delete_prefix) or not $no_delete_prefix) {
|
||||
system("rm -rf $prefix_abs/*");
|
||||
}
|
||||
mkdir($_, 0777) foreach(@dirs);
|
||||
|
||||
##
|
||||
@ -861,7 +863,7 @@ sub provision($$$$$$)
|
||||
queue resume command = $bindir_abs/vlp tdbfile=$lockdir/vlp.tdb queueresume %p
|
||||
lpq cache time = 0
|
||||
|
||||
ncalrpc dir = $lockdir/ncalrpc
|
||||
ncalrpc dir = $prefix_abs/ncalrpc
|
||||
rpc_server:epmapper = embedded
|
||||
|
||||
resolv:host file = $dns_host_file
|
||||
|
@ -522,7 +522,6 @@ sub provision_raw_prepare($$$$$$$$$$)
|
||||
push(@{$ctx->{directories}}, $ctx->{privatedir});
|
||||
push(@{$ctx->{directories}}, $ctx->{etcdir});
|
||||
push(@{$ctx->{directories}}, $ctx->{piddir});
|
||||
push(@{$ctx->{directories}}, $ctx->{ncalrpcdir});
|
||||
push(@{$ctx->{directories}}, $ctx->{lockdir});
|
||||
|
||||
$ctx->{smb_conf_extra_options} = "";
|
||||
@ -611,7 +610,6 @@ sub provision_raw_step1($$)
|
||||
spn update command = $ENV{SRCDIR_ABS}/source4/scripting/bin/samba_spnupdate
|
||||
resolv:host file = $ctx->{dns_host_file}
|
||||
dreplsrv:periodic_startup_interval = 0
|
||||
ncalrpc dir = $ctx->{lockdir}/ncalrpc
|
||||
";
|
||||
|
||||
if (defined($ctx->{sid_generator}) && $ctx->{sid_generator} ne "internal") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user